Sobes.tech
Junior — Middle

What is the base class that serves as the ancestor for all other classes in object-oriented programming?

sobes.tech AI

Answer from AI

In object-oriented programming in Java, the base class that serves as a parent for all other classes is the java.lang.Object class. All classes implicitly inherit from this class, allowing the use of common methods such as toString(), equals(), hashCode(), and others.