The method sumTwoNumbers is defined below. Assume this method is part of a larger class. public int sumTwoNumbers(int numberOne, int numberTwo){ int total = numberOne + numberTwo; return total;}In the method sumTwoNumbers, which statement about the variable total is correct?[Fill in the blank]单项选择题

题目图片
A

a. total is a local variable whose scope is the method body

B

b. total is a field whose scope is the method body

C

c. total is a parameter whose scope is the method body

D

d. total is a local variable whose scope is the entire class

E

e. total is a field whose scope is the entire class

F

f. total is a parameter whose scope is the entire class

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!