Values stored in local variables 存储在局部变量中的值
A. are lost between calls to the method in which they are declared 在对声明它们的方法的调用之间丢失
B. retain their values from the last call to the method in which they are declared 保留它们在最后一次调用声明它们的方法时的值
C. may be referenced by the calling method 可以通过调用方法引用
D. may be referenced by any other method, if the method in which they are declared is a public method 如果声明它们的方法是公共方法,则可以由任何其他方法引用
查看答案
下列常见的系统定义的异常中,哪个是输入输出异常 ?()
A. IOException
B. ArithmeticException
C. NullPointerException
D. FileNotFoundException
程序将创建文件输入流的代码置于try-catch语句中,其目的是捕获并处理_____。()
A. 文件太长异常
B. 打开文件太多异常
C. 文件找不到异常
D. 文件含有病毒异常
Look at the following code:(情看下列语句:)Integer myNumber = new Integer(5);int var = myNumber;Which of the following is true about the second statement?(关于第二个语句,下列哪一项是正确的?)
A. It results in an error because you can not assign a wrapper class object to a primitive variable.(它导致错误,因为不能将包装类对象分配给原始变量。
B. The statement performs auto boxing.(该语句执行自动封装)
C. The statement performs unboxing (语句执行解绑)
D. The statement performs unwrapping.(语句执行展开)
Look at the following code.(请看下列代码)Integer myNumber;myNumber = 5;Which of the following is true about the second statement?(关于第二个语句,下列哪一项是正确的?)
A. It results in an error because you can not assign a primitive type to a wrapper class object.(它会导致错误,因为不能将原始类型分配给包装类对象。)
B. The statement performs auto boxing.(语句执行自动封装)
C. The statement performs unboxing.(语句执行解绑)
D. The statement performs auto wrapping.(语句执行自动包装)