java题求翻译

来源:百度知道 编辑:UC知道 时间:2024/06/14 03:56:18
1---The Object referenced by a is eligible for garbage collection

2--Which three statements are true? (Choose three)

A. The default constructor initializes method variables.
B. The default constructor has the same access as its class.
C. The default constructor invoked the no-arg constructor of the superclass.
D. If a class lacks a no-arg constructor, the compiler always creates a default constructor.
E. The compiler creates a default constructor only when there are no other constructors
for the class.

3--Which three statements are true? (Choose three)

A. Assertion checking is typically enabled when a program is deployed.
B. It is never appropriate to write code to handle failure of an assert statement.
C. Assertion checking is typically enabled during program development and testing.
D. Assertion checking can be selectively enabled or disable an a per-package basis, but
not on a per-

1---The Object referenced by a is eligible for garbage collection
对象在使用完后,被垃圾回收器回收

2--Which three statements are true? (Choose three)
那3个陈述是正确的(选择三个)

A. The default constructor initializes method variables.
默认构造函数初始化方法变量
B. The default constructor has the same access as its class.
默认构造函数的访问权限和类相同
C. The default constructor invoked the no-arg constructor of the superclass.
默认构造函数会引用父类的空参构造函数
D. If a class lacks a no-arg constructor, the compiler always creates a default constructor.
如果类中没有定义空参构造函数, 那么编译器会为你创建一个
E. The compiler creates a default constructor only when there are no other constructors for the class.
编译器只会在类中不存在其它构造函数的情况下, 才会为你创建一个空
参构造函数

3--Which three statements are true? (Choose three)
那3个陈述是正确的(选择三个)
A. Assertion checking is typically enabled when a program is deployed.
当项目被部署以后, 断言会开始检查
B. It is never appropriate to write code t