num = Integer.parseInt(str) + 5;
A. a value-returning method 值返回方法
B. a void method 空方法
C. a local variable 局部变量
D. a complex method 复杂方法
查看答案
Which of the following is not a part of the method header? 下面哪个不是方法头的一部分?
A. return type 返回类型
B. method name 方法名称
C. parentheses 括号
D. semicolon 分号
Which of the following is included in a method call? 下列哪项包含在方法调用中?
A. return type 返回类型
B. method modifiers 方法修饰符
C. parentheses 括号
D. return variable 返回变量
You should always document a method by writing comments that appear 应该始终通过编写在 的注释来记录方法.
A. just before the method’s definition. 在方法定义之前
B. just after the method’s definition. 在方法定义之后
C. at the end of the file. 文件的末尾
D. only if the method is more than five lines long. 只有当方法长度超过5行时。
When an argument value is passed to a method, the receiving parameter variable is 将参数值传递给方法时,接收参数变量为
A. declared within the body of the method 在方法体中声明
B. declared in the method header inside the parentheses 在方法头的圆括号内声明
C. declared in the calling method .在调用方法中声明
D. uses the declaration of the argument 使用参数的声明