A named inner class that is declared within the body of a method is called a local class. A local class is not a member of any class. An inner class declared inside a method is private to the method. Therefore, it can neither be marked with an access modifier (public, private, or protected) nor with the static modifier.
A local class can access only those local variables or parameters in its enclosing method that are declared final. However, it can freely access any other variables (i.e., instance variables or static variables) in its enclosing class.
- Pass Master CIW Enterprise Developer in first attampt.
- Download practice question and study guide for scbcd for exam.
- Pass SUN scdjws - SCDJWS
- Get certified in first attempt download scjp - SCJP simulation.
- Become SUN SCJP 5/6 certified.
- Best exam simulation SUN scmad download free trial.
- Pass SCWCD in first attampt.
- Become SUN SCJP 2 certified.
- Download free practice test for SUN SCJP 1.4 Upgrade exam.
- Click here to download CX310-055 test study guide and practice question.
- Become SUN SCJP 5.0 Java Upgrade certified.
- Download free practice test for SUN SCJP 6.0 exam.
- Become SUN SCJP Upgrade certified.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
