This article contains… What is Default methods ? Why Default methods ? Example of various scenarios using Default methods Default methods and multiple inheritance Behavior when extending interface.
In this example you will find Anonymous Inner class concepts, Inner class concepts in java, and also some tricks about Interface. /* * TestAnonymousInnerClass.java * * This Example includes… * 1. Method inside Interface with body. * 2. Inner Class inside Interface. * 3.… Read More »
In this example, you will find the concept of Inner class in java, how to declare and access the inner class properties. Access modifiers and their effect on inner class properties. Java doc for Inner class in given Here : Inner class in java