<<< Nested classes | Index | Enumeration >>> |
An example of a class declared within a method:
public class ClassName { // code for the outer class public void methodName() { class InnerClassName { // code for the inner class }//class InnerClassName // code for the method }//methodName }//class ClassName
The class files generated for this class are:
ClassName.class ClassName$InnerClassName.class
<<< Nested classes | Index | Enumeration >>> |