java types of classes

Class Java

The basic construct of programming is Class Java like the basic constructs for a building is sand, cement and steel. Inside the class, exists other constructs like main, methods, variables and constructors etc. Java demands to write any code of any thousands of lines, within the class declaration only –…

Nested Classes Java

JDK 1.1 introduced a new type of classes known as inner classes. All the classes you have done so far are known as top-level classes. A class written inside another class is known as "inner class" or "nested class". That is, an inner class is enclosed within another class. Inner…