题目内容

Local variables 局部变量

A. are hidden from other methods 从其他方法中隐藏
B. may have the same name as local variables in other methods 可能与其他方法中的局部变量同名
C. lose the values stored in them between calls to the method in which the variable is declared用声明变量的方法之间丢失存储在其中的值
D. All of the above 以上都是

查看答案
更多问题

Which of the following values can be passed to a method that has an int parameter variable?下列哪个值可以传递给有int参数变量的方法?

A. float
B. double
C. long
D. All of the above 以上都是
E. None of the above 以上都不是

The header of a value-returning method must specify this. 返回值方法的标题必须指定

A. The method's local variable names 方法的局部变量名
B. The name of the variable in the calling program that will receive the returned value 将接收返回值的调用程序中变量的名称
C. The data type of the return value 返回值的数据类型
D. All of the above 以上都是

}

A. 18.0
B. 18 (as an integer)
C. 8
D. This is an error

In a @return tag statement the description 在@return标记语句中描述

A. cannot be longer than one line 不能超过一行
B. describes the return value 描述返回值
C. must be longer than one line 必须超过一行
D. describes the parameter values 描述参数值

答案查题题库