File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
question about method-local class
Why does Local variables should not have access modifiers
what is the purpose for allowing local variables as abstract ?
Inner classes
doubt Method local inner class