Nested classes in java
// example on static nested classes java
import java.util.*;
public class OuterClass
{
static class NestedClass
{
public void display()
{
System.out.println("static nested class example");
}
}
public static void main(String[] args)
{
OuterClass.NestedClass nested = new OuterClass.NestedClass();
nested.display();
}
}