News

If the thing inside the parentheses is also a class, it becomes an inner class. Java has supported inner classes since version 1.1.
To address the shortcomings of this approach, Java 1.1 introduced the concept of anonymous inner classes. Benefits and drawbacks to anonymous inner classes An anonymous inner class allows developers ...