Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (1.5k points)
Asking this out of self curiosity which class is the superclass of all classes?

1 Answer

0 votes
by (1.4k points)

Object is the super class of all other classes you use. 

And you'll see the following methods are inherited from Object in every class. 

  • equals(Object o) 

  • getClass() 

  • hashCode() 

  • notify() 

  • notifyAll() 

  • toString() 

  • wait() 

  • wait(lonmillis, innanos) 

  • wait(lonmillis) 

To learn in detail about java, please check this dedicated blog

Related questions

Browse Categories

...