文档介绍:Java笔试题常见英语
What will be the output when pile and execute the following program?
当执行以下程序时会输出什么?
output 输出
compile 编译(动词) compilation(名词)
execute 执行(动词) execution(名词)
Runtime error. patible type. Can’t convert an int to a boolean.
运行时错误。不兼容的类型。无法将一个整型转换为布尔型。
runtime 运行时
patible 不兼容的
convert 转换
Which method must be defined by a class implementing the interface?
,哪个方法必须被定义?
method 方法
define 定义(动词)definition(名词)
implement 实现(动词)implementation(名词)
interface 接口
Given the following code, what will be the result?
假设有如下代码,运行结果会是什么?
given 假设有
following 如下的
Compilation fails because of an error on line 12.
编译失败,原因是在第12行出现一个错误。
fail 失败(动词) failure(名词) eed(反义词:成功,(动词)) ess(名词)
Which two are reserved words in Java?
下面哪两个单词是Java中的保留字?
reserve 保留,预订(动词) reservation(名词)
What is the numerical range of a char?
字符型的数值范围是?
numerical 数字的,数值的
range 范围
Which cannot directly cause a thread to stop executing?
(下列选项中)哪一个不能直接导致一个线程停止执行?
directly 直接地(副词) direct(形容词,动词)
cause 导致,造成(动词) 原因(名词)
thread 线程
Which two statements are true regarding the creation of a default constructor?
下面哪两句关于默认构造器的创建的说法是正确的?
statement 陈述,语句
regarding 关于,就…而论
creation 创造,创建(名词) create(动词)
default 默认的
Constructors are used to initialize the instance variables declared in the class.
构造器是用来初始化类中声明的实例变量的。
initialize 实例化(动词) initialization(名词)