Programming - Relationship b/w Objects
You Are Here :: Home > JAVA > Relationship b/w Objects - General Questions
31. |
Java programs can contain ________ kinds of variables.
|
|
Answer: Option C
Explanation:
Java programs can contain three kinds of variables: instance variables, class variables, and local variables. |
|
32. |
Variables declared to have reference types are called _____________ variable.
|
A. |
object |
B.
|
Class |
C.
|
Variable
|
D.
|
Method
|
|
Answer: Option A
Explanation:
Variables declared to have reference types are called object variables, because they hold references to objects. |
|
33. |
Class variables that are declared final (with the final keyword) are ____________ constants.
|
A. |
parametrizes |
B.
|
named |
C.
|
unparameterized
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
Class variables that are declared final (with the final keyword) are named constants. |
|
« prev