题目内容

To document the return value of a method, use this in a documentation comment. 要记录方法的返回值,需要在文档注释中使用 。

A. The @param tag
B. The @comment tag
C. The @return tag
D. The @returnValue tag

查看答案
更多问题

}

A. a. 18.0
B. 18 (as an integer)
C. 8.0
D. This is an error 错误

A value-returning method must specify this as its return type in the method header. 值返回方法必须在方法头中将其指定为 返回类型。

A. an int
B. a double
C. a boolean
D. any valid data type 任何有效的数据类型

Local variables can be initialized with 局部变量可以用 初始化

A. constants 常量
B. parameter values 参数值
C. the results of an arithmetic operation 算术运算的结果
D. any of the above 以上都是

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 如果声明它们的方法是公共方法,则可以由任何其他方法引用

答案查题题库