aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes classes & objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "classes & objects" Watch "classes & objects" New topic
Author

classes & objects

Bharat Reddy ALLA
Greenhorn

Joined: Jun 20, 2008
Posts: 7
What is the difference between classes and objects in core java?
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

This is a class

Class X
{}

The following code creates an object of class X in the JVM memory

X x = new X();


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Sunny Jaiswal
Greenhorn

Joined: Feb 01, 2008
Posts: 14
To start with, think of class as an "Idea", it is something that is different from others and has a unique behavior, it can be a person, an aircraft or anything else. The objects are just the example of that given idea, like you and me or a Sukhoi-30. In other words, a class is a blueprint from which objects are constructed. The objects represents the particular instance of that class, like people belonging to the same city, and the aircraft's produced of a given type.


Preparing for SCJP...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classes & objects