*
The moose likes Beginning Java and the fly likes Can a final variable be changed at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Can a final variable be changed at runtime" Watch "Can a final variable be changed at runtime" New topic
Author

Can a final variable be changed at runtime

kaffo lekan
Ranch Hand

Joined: Feb 13, 2001
Posts: 42
Hello
i need to know if a final variable can be changed at runtime.
Yes/No , please explain more.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Yes, but only in its constructor.
For example:


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can a final variable be changed at runtime