Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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: 3402
  • 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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!