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.
- Download free practice test for CIW Master CIW Enterprise Developer exam.
- Best exam simulation SUN scbcd download free trial.
- Click here to download scdjws test study guide and practice question.
- Download practice question and study guide for scjp for exam.
- Download practice question and study guide for scjp-5-0 for exam.
- Download free practice test for SUN SCMAD exam.
- Best exam simulation SUN scwcd download free trial.
- Download free practice test for SUN SCJP 2 exam.
- Pass SCJP 1.4 Upgrade in first attampt.
- Click here to download CX310-055 test study guide and practice question.
- Click here to get free CX310-056 SCJP 5.0 Java Upgrade exam practice questions.
- Click here to download CX310-065 test study guide and practice question.
- Click here to get free CX310-066 SCJP Upgrade exam practice questions.
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.