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 master-ciw-enterprise-developer Master CIW Enterprise Developer exam.
- Become SUN SCBCD certified.
- Download practice question and study guide for scdjws for exam.
- Best exam simulation SUN scjp download free trial.
- Download practice question and study guide for scjp-5-0 for exam.
- Get certified in first attempt download scmad - SCMAD simulation.
- Click here to get free scwcd SCWCD exam practice questions.
- Click here to download 310-035 test study guide and practice question.
- Download free practice test for SUN SCJP 1.4 Upgrade exam.
- Download free practice test for SUN Java 5.0 exam.
- Click here to get free CX310-056 SCJP 5.0 Java Upgrade exam practice questions.
- Pass SUN CX310-065 - SCJP 6.0
- Download free practice test for CX310-066 SCJP Upgrade exam.