Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Local Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Local Variables" Watch "Local Variables" New topic
Author

Local Variables

geeta rai
Ranch Hand

Joined: Sep 18, 2003
Posts: 48
Are local variables allowed to have any modifiers? If yes, which of them are allowed?
Thanks.
Kalai Ganesh
Ranch Hand

Joined: Sep 08, 2003
Posts: 32
Yes Geeta, final modifier is allowed for the local variables. Also, that is the only one allowed.
Kalai
geeta rai
Ranch Hand

Joined: Sep 18, 2003
Posts: 48
Thanks Kalai Ganesh
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Local Variables
 
Similar Threads
question about method-local class
Why does Local variables should not have access modifiers
Inner classes
doubt Method local inner class
what is the purpose for allowing local variables as abstract ?