Sobes.tech
Junior — Middle

What is the base class that serves as the ancestor for all classes in Java?

sobes.tech AI

Answer from AI

In Java, the base class that is the ancestor of all other classes is the class java.lang.Object. All classes implicitly inherit from it unless explicitly specified otherwise. This class provides basic methods such as toString(), equals(), hashCode(), clone(), and others.

What is the base class that serves as the ancestor… - sobes.tech