Java SE 8 Programmer I — Question 195
Which three statements describe the object-oriented features of the Java language? (Choose three.)
Answer options
- A. Objects can be reused.
- B. A subclass must override the methods from a superclass.
- C. Objects can share behaviors with other objects.
- D. A package must contain a main class.
- E. Object is the root class of all other objects.
- F. A main method must be declared in every class.
Correct answer: A, C, E
Explanation
The correct answers A, C, and E illustrate key principles of object-oriented programming in Java, such as reusability of objects, sharing of behaviors, and the foundational role of the Object class. Options B and F are incorrect because subclassing does not require overriding methods, and not all classes need a main method. Option D is also incorrect since a package does not have to contain a main class.