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 February 22, 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. What is it called where object has its own lifecycle and child can not belong to another parent object? Association Encapsulation Composition Aggregation 2. Which method return the element of the Enum class? getEnum() getEnumList() getEnums() getEnumConstant() 3. Which of the following is not OOPS concept in java? Inheritance Compilation Polymorphism Encapsulation 4. Which of these supported by method overriding Polymorphism Encapsulation Abstraction None 5. Which of these can be used to differentiate two or more methods having same name? Return types of method Parameters data type All of the above Number of parameters 6. Which of these keywords can be used to prevent Method Overriding? final static constant protected 7. How can we identify whether a compilation unit is class or interface from a .class file? We can not differentiate between class and interface Java source file header Extension of compilation unit The class or interface name should be postfixed with unit type 8. Which of these method of class String is used to extract a substring from a String Object? None Substring() SubString() substring() 9. Which concept of Java is achieved by combining methods and attribute into a class? Inheritance Encapsulation Abstraction Polymorphism 10. What is it called where object has its own lifecycle and child object cannot belong to another parent object? Association Encapsulation Composition Aggregation 11. Which of these can be used to differentiate two or more methods having same name? All of the above Return type of Method Number of Parameters Parameters data type 12. Which of the following is a type of polymorphism in Java? Execution time Polymorphism Compile time Polymorphism Multilevel Polymorphism Multiple Polymorphism 13. Which of the following is a valid declaration of an objects of class Box? new Box obj(); Box obj = new Box(); Box obj = new Box; obj = new Box(); Please fill in the comment box below.