File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes state of an object 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 "state of an object" Watch "state of an object" New topic

state of an object

itisha jain

Joined: Oct 04, 2005
Posts: 11
What do we mean when we say the state of an object?Can somebody explain with an example.
Sandeep Chhabra
Ranch Hand

Joined: Aug 28, 2005
Posts: 340
If I am not wrong, the current values of all the member variables of a class together are referred as the state of the object.
Correct me if i am wrong.
[ October 05, 2005: Message edited by: Sandeep Chhabra ]

Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?
Ritu Kapoor
Ranch Hand

Joined: Oct 03, 2004
Posts: 102
Hi Itisha,

1. Member variables of an object represents the state of an object. while
2. Methods of an object represents the behaviour.

I agree. Here's the link:
subject: state of an object
It's not a secret anymore!