This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes what is the meaning of instance and instance variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is the meaning of instance and instance variables" Watch "what is the meaning of instance and instance variables" New topic
Author

what is the meaning of instance and instance variables

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

what does instance mean in corejava


http://www.lifesbizzare.blogspot.com || OCJP:81%
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Vishal Hegde wrote:what does instance mean in corejava

As per Wikipedia,
In object-oriented programming with classes, an instance variable is a variable defined in a class (i.e. a member variable), for which each object in the class has a separate copy.
An instance variable is the opposite of class variable, and it is a special type of instance member.

Similarly, non-static field in your program would be your instance variable because their values would be unique to each instance of a class .

Also, I think "instance" keyword is same as "instance variables" in the context of Java


http://muhammadkhojaye.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is the meaning of instance and instance variables