Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query on static varibale

 
abin joy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a static variable in class.I can change the value of that variable in a method in the same class.How this is possible?
 
arulk pillai
Author
Ranch Hand
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do you think it cannot be modified? if you do not want to modify it mark it as final.



[ August 17, 2008: Message edited by: arulk pillai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic