How many classes can a Java class directly extend?
Correct answer D. One at most
Explanation
Java permits single inheritance of classes, so a class has exactly one direct superclass, and Object is used implicitly when no extends clause is written. Only Object itself has none. Multiple inheritance of type is achieved through interfaces, since a class may implement any number of them while still extending just one class.
Answer checked How we write and check questions
Discussion