11.) What is a constructor in Java?
12.) Which OOP concept allows a class to provide a clear and consistent public interface while hiding its internal implementation?
13.) Which keyword is used to indicate that a class cannot be inherited by any other class?
14.) What is the purpose of an interface in Java?
15.) Which access modifier allows a class’s members to be accessible within the same package and by subclasses in different packages?
16.) What is the term used to describe the ability of an object to take on many forms through inheritance and interface implementation?
17.) Which OOP concept allows a class to inherit properties and behaviors from multiple superclasses?
18.) What is the purpose of method overriding in Java?
19.) Which OOP concept allows you to create a new class that includes the attributes and methods of an existing class and introduces new properties?
20.) What is the term used to describe the process of hiding the implementation details of an object and only exposing necessary features?
See All Java Programming MCQs: All Java Programming MCQs