Programming - Relationship b/w Objects
You Are Here :: Home > JAVA > Relationship b/w Objects - General Questions
7. |
The _____________ keyword denotes a reference to the object that the method is acting upon.
|
A. |
super |
B.
|
get |
C.
|
this
|
D.
|
post
|
|
Answer: Option C
Explanation:
The this keyword denotes a reference to the object that the method is acting upon. |
|
8. |
A constructor with no parameters is called the ___________ constructor
|
A. |
vary |
B.
|
parameterized |
C.
|
unparameterized
|
D.
|
default
|
|
Answer: Option D
Explanation:
A constructor with no parameters is called the default constructor |
|
9. |
________________ modifiers specify which parts of the program may see and use any particular class/method/field Information hiding is good
|
A. |
Visibility |
B.
|
Invisibility |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option A
Explanation:
Visibility modifiers specify which parts of the program may see and use any particular class/method/field Information hiding is good |
|
10. |
A ______________ is a Java reserved word that specifies particular characteristics of a programming construct
|
A. |
Accessories |
B.
|
modifier |
C.
|
Both A and B
|
D.
|
None of these
|
|
Answer: Option B
Explanation:
A modifier is a Java reserved word that specifies particular characteristics of a programming construct |
|
11. |
_____________ is to protect the programmers and is thus between the code of different classes
|
A. |
Inheritance |
B.
|
Polymorphism |
C.
|
Encapsulation
|
D.
|
Abstraction
|
|
Answer: Option C
Explanation:
Encapsulation is to protect the programmers and is thus between the code of different classes |
|
12. |
The JDK contains a special tool for the generation of API documentation for your classes, called ____________.
|
A. |
kit |
B.
|
java execution |
C.
|
java excel
|
D.
|
javadoc
|
|
Answer: Option D
Explanation:
The JDK contains a special tool for the generation of API documentation for your classes, called javadoc. |
|
« prev
next »