Programming - Introduction to OOPS
You Are Here :: Home > JAVA > Introduction to OOPS - General Questions
37. |
Each and every final variable value must be ________________
|
A. |
static |
B.
|
non static |
C.
|
both
|
D.
|
none
|
|
Answer: Option A
Explanation:
Each and every final variable value must be static. |
|
38. |
static methods definations must be preceded by ________________ keyword
|
A. |
static |
B.
|
non static |
C.
|
both
|
D.
|
none
|
|
Answer: Option A
Explanation:
Static keyword is used to define static methods. |
|
39. |
can a result of static method is sharable?
|
A. |
Yes |
B.
|
no |
C.
|
not determined
|
D.
|
none
|
|
Answer: Option B
Explanation:
No, static method is not sharable. |
|
40. |
which method can be used for executing only once ?
|
A. |
static |
B.
|
void |
C.
|
both
|
D.
|
none
|
|
Answer: Option A
Explanation:
while executing,static method can be used only once. |
|
« prev