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 …

User defined Exception in Java

You can also create your own exception sub class simply by extending java Exception class. You can define a constructor for your Exception sub class (not compulsory) and you can override the toString() function to …