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.
- Click here to get free master-ciw-enterprise-developer Master CIW Enterprise Developer exam practice questions.
- Best exam simulation SUN scbcd download free trial.
- Download free practice test for SUN SCDJWS exam.
- Pass SUN scjp - SCJP
- Download free practice test for SUN SCJP 5/6 exam.
- Click here to download scmad test study guide and practice question.
- Pass SCWCD in first attampt.
- Pass SCJP 2 in first attampt.
- Download practice question and study guide for CX310-036 for exam.
- Pass Java 5.0 in first attampt.
- Download free practice test for SUN SCJP 5.0 Java Upgrade exam.
- Get certified in first attempt download CX310-065 - SCJP 6.0 simulation.
- Get certified in first attempt download CX310-066 - SCJP Upgrade simulation.
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.
