Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is difference between

 
srikanth arroju
Ranch Hand
Posts: 66
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between static ,instance ,local variables
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic