
JAVA_3
Quiz
•
Computers
•
University
•
Medium
Shiwen Zhang
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在Java中,下列哪项是不正确的构造方法声明?
public MyClass() {}
MyClass() {}
MyClass(int a) { return a; }
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在Java中,哪个关键字用于实例化一个新的对象?
this
super
new
class
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
在Java中,下面关于静态方法的说法,错误的是()
静态方法可以被类的实例调用
静态方法只能访问类的静态成员
静态方法可以直接调用非静态方法
静态方法是属于类的,而不是类的实例
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
在Java中,构造方法有哪些特点?
必须有一个返回值
必须与类名相同
所有类都必须显式定义构造方法
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在Java中,如果一个类没有显式声明任何构造器,那么会发生什么?
编译错误
运行时错误
该类不能被实例化
编译器会提供一个无参构造器
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
下列关于Java构造函数的描述,错误的是?
构造函数可以被重载
构造函数可以是私有的
构造函数必须有返回类型
构造函数的名称必须与类名相同
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在Java中,尝试修改字符串中的字符会发生什么?
字符会被修改
会抛出一个异常
字符串内容不会改变,因为字符串是不可变的
Java运行时错误
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
erp-採購-10
Quiz
•
University - Professi...
10 questions
3-1資料處理
Quiz
•
7th Grade - University
10 questions
Operating-System Operations
Quiz
•
University
15 questions
2425 S5 ICT Lesson Quiz - DB Normalization
Quiz
•
11th Grade - University
10 questions
排序测试
Quiz
•
University
13 questions
數字系統的基本概念與應用
Quiz
•
12th Grade - University
9 questions
Ch06-Synchronization Tools_part2
Quiz
•
University
7 questions
MCU 20221130
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
7 questions
Review for You: Using Commas
Interactive video
•
4th Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
Safari Scholar: Searching for Subject-Verb Agreement
Interactive video
•
4th Grade - University
