Sobes.tech
Junior — Middle

What is the base class that is the ancestor of all objects in Java?

sobes.tech AI

Answer from AI

In Java, the base class that is a parent for all objects is java.lang.Object. All classes in Java implicitly inherit from this class, which allows using common methods such as toString(), equals(), hashCode(), and others.