Variables should be declared as fields only if ________.

a. they are local variables
b. they are used only within a method
c. they are required for use in more than one method or their values must be saved between calls to the class’s methods
d. they are arguments

c. they are required for use in more than one method or their values must be saved

Computer Science & Information Technology

You might also like to view...

What is a global prototype?

What will be an ideal response?

Computer Science & Information Technology

The ____ variable is initialized before entering the loop.

A. loop-ending B. ending control C. interrupt control D. loop control

Computer Science & Information Technology