public class StaticTest { person[] p = new person[20]; private static int i; public StaticTest() { person p1 = new person(); p[0].age = 10; p[1]=p1; i++; System.out.println("Instances of StaticTest "+i); } } class person { int age; }