--:--









Quiz for Interfaces and Abstract Classes

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



Logo

Q1: What is an interface in Java?

Logo

Q2: Can interfaces have default methods in Java?

Logo

Q3: Which keyword is used to implement an interface?

Logo

Q4: What is true about abstract classes?

Logo

Q5: Can a class implement multiple interfaces?

Logo

Q6: Which of the following cannot be instantiated?

Logo

Q7: What does an interface not allow until Java 7?

Logo

Q8: Can an abstract class extend another abstract class?

Logo

Q9: Which interface method modifier is implicitly added in Java?

Logo

Q10: Can a class be both abstract and final?

Logo

Q11: What is an interface in Java? (11)

Logo

Q12: Can interfaces have default methods in Java? (12)

Logo

Q13: Which keyword is used to implement an interface? (13)

Logo

Q14: What is true about abstract classes? (14)

Logo

Q15: Can a class implement multiple interfaces? (15)

Logo

Q16: Which of the following cannot be instantiated? (16)

Logo

Q17: What does an interface not allow until Java 7? (17)

Logo

Q18: Can an abstract class extend another abstract class? (18)

Logo

Q19: Which interface method modifier is implicitly added in Java? (19)

Logo

Q20: Can a class be both abstract and final? (20)

Logo

Q21: What is an interface in Java? (21)

Logo

Q22: Can interfaces have default methods in Java? (22)

Logo

Q23: Which keyword is used to implement an interface? (23)

Logo

Q24: What is true about abstract classes? (24)

Logo

Q25: Can a class implement multiple interfaces? (25)

Are you ready to start test? Set your time limit