4 types of Java inner classes
There are 4 different types of inner classes in Java. This post illustrates them by using 4 simple examples. 1. Static Nested Classes class Outer { static class Inner { void go() { System.out.println("Inner class reference is: " + this); } } } public class Test { public static void main(String[] args) { Outer.Inner … Read more