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
Correct Answer:
Verified
Q6: Which of the following promotions of primitive
Q7: The parameter list in the method header
Q8: Which operator can be used in string
Q9: Any field declared with keyword _ is
Q10: Which of the following methods is not
Q12: Method log takes the logarithm of its
Q13: To declare a method as static, place
Q14: If more method calls occur than can
Q15: Declaring main as static allows the JVM
Q16: A static method can _.
A) call only
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents