Tutorial Archive

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 …

throws keyword in Java

The throws keyword is used to declare an exception. It gives an information to the programmer that there may occur an exception so it is better for the programmer to provide the exception handling code …

final keyword in Java

The final is a keyword. This is similar to const keyword in other languages. This keyword may not be used as identifiers i.e. you cannot declare a variable or class with this name in your …

Interfaces in Java

An interface is a collection of methods that have no implementation – they are just created, but have no functionality. An interface is a bit like a class, except you can only declare methods and …