permaculture playing cards*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Local Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Local Variables" Watch "Local Variables" New topic

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?
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.
geeta rai
Ranch Hand

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