Core JAVA Archive

Nested Interface in Java

A nested interface is just a regular interface defined inside another class or interface. They are actually defined inside the body of the parent class, not only in the same file. The feature is useful …

static nested classes in java

A nested class that is declared static is called a static nested class. Memory to the objects of any static nested classes are allocated independently of any particular outer class object. A static nested class …

Annonymous inner class in java

Anonymous classes enable you to make your code more concise. They enable you to declare and instantiate a class at the same time. They are like local classes except that they do not have a …

Member inner class

A class that is declared inside a class but outside a method is known as member inner class. Invocation of Member Inner class From within the class From outside the class Example of member inner …