
JAVA_3
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Shiwen Zhang
Used 2+ times
FREE Resource
Enhance your content in a minute
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
9 questions
Ch06-Synchronization Tools_part01
Quiz
•
University
6 questions
Chapter5_review
Quiz
•
University
5 questions
小試牛刀
Quiz
•
University
5 questions
【项目3】Word文档编辑
Quiz
•
University
10 questions
計算機網路-Ch2
Quiz
•
University
10 questions
Python Language 2
Quiz
•
University
10 questions
你懂虎科嗎
Quiz
•
University
15 questions
20241127你真的會Excel嗎?
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
