jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes query on static varibale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "query on static varibale " Watch "query on static varibale " New topic

query on static varibale

abin joy
Ranch Hand

Joined: Jul 29, 2008
Posts: 35
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
Ranch Hand

Joined: May 31, 2007
Posts: 3371
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 ]

[Java-Success.com] | [Java job hunting know how] | [Java resumes]
I agree. Here's the link: http://aspose.com/file-tools
subject: query on static varibale
It's not a secret anymore!