File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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
I agree. Here's the link:
subject: what is difference between
It's not a secret anymore!