--:--









Quiz for Abstraction and Encapsulation

Course: JAVA | Subject: Java | Topic: Object-Oriented Programming (OOP)



Logo

Q1: What is abstraction in Java?

Logo

Q2: Which keyword is used to define an abstract class?

Logo

Q3: What is encapsulation in Java?

Logo

Q4: Which access modifier provides the highest level of encapsulation?

Logo

Q5: Can we create an object of an abstract class?

Logo

Q6: Which of the following enforces abstraction?

Logo

Q7: Which principle hides internal object details?

Logo

Q8: Which of the following is NOT true about encapsulation?

Logo

Q9: Which access modifier is typically used with getters/setters?

Logo

Q10: Which keyword is used to define an abstract method?

Are you ready to start test? Set your time limit