1. |
What is the stored in the object obj in following lines of Java code?
box obj;
|
||||||||
Answer:
Option (b) |
2. |
Which of these keywords is used to make a class?
|
||||||||
Answer:
Option (a) |
3. |
Which of the following is a valid declaration of an object of class Box?
|
||||||||
Answer:
Option (a) |
4. |
Which of these operators is used to allocate memory for an object?
|
||||||||
Answer:
Option (c) |
5. |
Which keyword is used by the method to refer to the object that invoked it?
|
||||||||
Answer:
Option (d) |
6. |
What is not the use of “this” keyword in Java?
|
||||||||
Answer:
Option (d) |
7. |
Arrays in Java are implemented as?
|
||||||||
Answer:
Option (b) |
8. |
Which of these keywords is used to prevent content of a variable from being modified?
|
||||||||
Answer:
Option (a) |
9. |
Which of the following statements are incorrect?
|
||||||||
Answer:
Option (a) |
10. |
What is the return type of Constructors?
|
||||||||
Answer:
Option (d) |