Java OOPs Concept Quiz May 20, 2021 Leave a Comment on Java OOPs Concept Quiz Welcome to your Java OOPs Concept Quiz. You are attempting the quiz on April 19, 2024 For your information, please note that this Java OOPs Concept Quiz has only single choice questions. Read each and every questions carefully before you start answering.You will have 10 min to complete the quiz. Press the Start quiz button to initiate the quiz. Once complete you press Finish button to complete the test. After completion of test you can see your quiz result with sharing option, You can share your quiz result to social media like Facebook, Instagram etc. Note: You can view all the answers at the end of this quiz. Best of luck for LTE Java OOPs Concept Quiz 1. Which of the following is a type of polymorphism in Java? Multiple Polymorphism Compile time Polymorphism Execution time Polymorphism Multilevel Polymorphism 2. Which concept of Java is achieved by combining methods and attribute into a class? Inheritance Abstraction Polymorphism Encapsulation 3. What is it called where object has its own lifecycle and child object cannot belong to another parent object? Composition Association Encapsulation Aggregation 4. Which of these supported by method overriding Abstraction None Polymorphism Encapsulation 5. How can we identify whether a compilation unit is class or interface from a .class file? We can not differentiate between class and interface The class or interface name should be postfixed with unit type Extension of compilation unit Java source file header 6. Which of these can be used to differentiate two or more methods having same name? All of the above Return types of method Parameters data type Number of parameters 7. Which of the following is a valid declaration of an objects of class Box? obj = new Box(); new Box obj(); Box obj = new Box(); Box obj = new Box; 8. Which method return the element of the Enum class? getEnumConstant() getEnums() getEnum() getEnumList() 9. Which of these method of class String is used to extract a substring from a String Object? SubString() Substring() substring() None 10. What is it called where object has its own lifecycle and child can not belong to another parent object? Encapsulation Association Aggregation Composition 11. Which of these can be used to differentiate two or more methods having same name? Parameters data type All of the above Number of Parameters Return type of Method 12. Which of the following is not OOPS concept in java? Inheritance Encapsulation Compilation Polymorphism 13. Which of these keywords can be used to prevent Method Overriding? protected constant static final Please fill in the comment box below.