Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Data Structures - Retired Getting There Object Inheritance

Yogesh Ravi
Yogesh Ravi
1,028 Points

It is known that object is an instance of a class, then how objects form the super class of every class?

It is difficult to understand what is actually an object

1 Answer

Daniel Vargas
Daniel Vargas
29,184 Points

Hi

There is a class named Object and every class in java decend from this class. Even though is called Object is not an object, it's a class. However like any other class in java you can create objects from it:

Object obj=new Object();

In this example obj is the object.

Yogesh Ravi
Yogesh Ravi
1,028 Points

Thank you so much sir, you made it clear. I was confused over this.