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 between calls to the class’s methods

Computer Science & Information Technology

You might also like to view...

The Word feature that determines whether the next word in the line will fit within the established right margin is called:

A) margin check. B) wrapping. C) wrap text. D) wordwrap.

Computer Science & Information Technology

The data type of a parameter may be:

a. a constant. b. a variable. c. an expression. d. all of the above.

Computer Science & Information Technology