Object-Oriented Programming in Java

Assess your grasp of classes,inheritance,and polymorphism.

1. What is the blueprint for creating objects in Java?
2. Which of the following are core Object-Oriented Programming principles in Java?
3. A Java class can extend multiple classes.
4. What keyword is used to inherit a class in Java?
5. Which access modifier restricts member access to within its own class only?
6. What is the term for multiple methods with the same name but different parameters in a class?
7. Which of the following are primitive data types in Java?
8. An abstract class can contain non-abstract (concrete) methods.
9. What is the superclass of all classes in Java?
10. What OOP principle refers to wrapping data and methods into a single unit?
11. Which keyword refers to the current instance of a class?
12. Which statements about Java constructors are true?
13. A Java interface can contain static methods.
14. What is required for a method to override a superclass method?
15. What keyword is used to prevent a class from being inherited?
16. Which of the following enable polymorphism in Java?
17. Which keyword is used to call a superclass constructor?
18. What is an instance variable?
19. What term describes an object's ability to take multiple forms?
20. Which of the following declares a constant in Java?
Answered 0 of 0 — 0 correct