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

Computer Science & Information Technology

You might also like to view...

Which of the following regular expression metacharacters matches any non-numeric character?

A. \d B. \D C. \s D. \S

Computer Science & Information Technology

Which property lets you expand or compress the font face?

A. font-size-adjust B. ?font-stretch C. text-expand D. text-height

Computer Science & Information Technology