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]Single choice

Question Image
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

Log in for full answers

We've collected over 50,000 authentic original questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

Similar Questions

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!