jQuery in Action, 2nd edition*
The moose likes Beginning Java and the fly likes what is difference between Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what is difference between" Watch "what is difference between" New topic
Author

what is difference between

srikanth arroju
Ranch Hand

Joined: Aug 02, 2006
Posts: 66
what is the difference between static ,instance ,local variables
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by srikanth arroju:
what is the difference between static ,instance ,local variables

"static" means associated with the class, rather than any particular instance.

"Instance" means non-static. In other words, associated with a particular instance.

"Local" means limited to a particular scope within a class -- typically a method body.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is difference between