

MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Java knowledge and support exam preparation. Choose a topic below to get started.
1. |
Method overriding is combination of inheritance and polymorphism? |
A. | True |
B. | false |
Answer» B. false | |
2. |
What is it called where object has its own lifecycle and child object cannot belong to another parent object? |
A. | Aggregation |
B. | Composition |
C. | Encapsulation |
D. | Association |
Answer» B. Composition | |
3. |
What is it called where child object gets killed if parent object is killed? |
A. | Aggregation |
B. | Composition |
C. | Encapsulation |
D. | Association |
Answer» C. Encapsulation | |
4. |
What is it called if an object has its own lifecycle and there is no owner? |
A. | Aggregation |
B. | Composition |
C. | Encapsulation |
D. | Association |
Answer» E. | |
5. |
Which concept of Java is achieved by combining methods and attribute into a class? |
A. | Encapsulation |
B. | Inheritance |
C. | Polymorphism |
D. | Abstraction |
Answer» B. Inheritance | |
6. |
Which concept of Java is a way of converting real world objects in terms of class? |
A. | Polymorphism |
B. | Encapsulation |
C. | Abstraction |
D. | Inheritance |
Answer» D. Inheritance | |
7. |
When Overloading does not occur? |
A. | More than one method with same name but different method signature and different number or type of parameters |
B. | More than one method with same name, same signature but different number of signature |
C. | More than one method with same name, same signature, same number of parameters but different type |
D. | More than one method with same name, same number of parameters and type but different signature |
Answer» E. | |
8. |
When does method overloading is determined? |
A. | At run time |
B. | At compile time |
C. | At coding time |
D. | At execution time |
Answer» C. At coding time | |
9. |
Which of the following is a type of polymorphism in Java? |
A. | Compile time polymorphism |
B. | Execution time polymorphism |
C. | Multiple polymorphism |
D. | Multilevel polymorphism |
Answer» B. Execution time polymorphism | |
10. |
METHOD_OVERRIDING_IS_COMBINATION_OF_INHERITANCE_AND_POLYMORPHISM??$ |
A. | True |
B. | false |
Answer» B. false | |
11. |
Which of the following is not OOPS concept in Java? |
A. | Inheritance |
B. | Encapsulation |
C. | Polymorphism |
D. | Compilation |
Answer» E. | |