// allocating a new nested static from inside the outer class NestedStatic ns = new NestedStatic(); // allocating a new nested static from outside the outer class Outer.NestedStatic ns = new Outer.NestedStatic(); // Real world example: // instantiating a static nested class. // In this case, NumberEditor is a static nested class // of JSpinner. JSpinner.NumberEditor e = new JSpinner.NumberEditor ( year, "0000" );