Multiple Choice
Which statement about instance variables is correct?
A) Instance variables must be declared within a method.
B) Instance variables must be declared inside the class, but outside any method.
C) Instance variables may be declared inside the class, or inside a method.
D) Instance variables must be declared outside the class
Correct Answer:

Verified
Correct Answer:
Verified
Q86: Consider the following code snippet:<br>Coin coin1 =
Q87: The process of hiding object data and
Q88: Consider the following code snippet:<br>Public int getCoinValue(String
Q89: Given the following class definition, which of
Q90: Which of the following statements about classes
Q92: Which of the following statements about encapsulation
Q93: Which of the following statements about constructors
Q94: Consider the following code snippet:<br>Public int getSalary(String
Q95: Given the following class definition, which of
Q96: The this reference refers to _.<br>A) the