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

Can somebody please explain what is an object in java and how is it related to classes?

I watched the video for Craig Dennis explaining objects in java but I couldn't really get it get the concept of an object from him can someone please explain in a different method

3 Answers

Class is like a template for objects.

Hi Mustafa,

Have a read through this Treehouse thread and see if that helps you out.

Steve.

object is an instance of the class