File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Local variables

Ismael Upright
Ranch Hand

Joined: Feb 15, 2007
Posts: 166
In Sierra's book there is a sentence:

Local variables are variables declared within a method.


[Sierra 53]


What about variables declared in a block of code? Aren't they considered as local also?
Kelvin Chenhao Lim
Ranch Hand

Joined: Oct 20, 2007
Posts: 513
Yes. Local variables may be defined within a method, constructor, or initializer block.


SCJP 5.0
Ismael Upright
Ranch Hand

Joined: Feb 15, 2007
Posts: 166
Thanks Kelvin for your valuable help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Local variables