STATIC INNER CLASS whenever any class is defined inside the scope of another class using 'static' keyword then it is class static inner class. # how call inner class OuterClassName.InnerClassName # following characteristics are: 1) It can be instantiated independently means object of outer class is not required for instantiation of static inner class. OuterClassName ref = new OuterClassName() 2) It can directly used the reference of priavte static member of its outer class. class Outer { priavte static int a=10; class Inner { public void display() { System.out.println("access value of a"+a);// private member of class call in inner class } } --------------------------------------------------------------------------------- JRE MAKE FOLLOWING CHANGE 1)...
Posts
Showing posts from February, 2018