Generics

Generics Java Generics features were introduced from Java Se 5 onwards. Before Java 5, we can store any type of objects in collection i.e. non generic. With inclusion of Generics we need to store only specific type of objects only. Let’s look at the benefits of generics Compile time checking: Generics allows you to check…

Continue reading

OOPS Inheritance

Inheritance INHERITANCE is the process of taking the features (data members + methods) from one class to another class. Types Single Inheritance Multi-Level Inheritance Hierarchical Inheritance Hybrid Inheritance Multiple Inheritance Multiple inheritances are not supported by JAVA through classes but it is supported by JAVA through the concept of interfaces. Inheritance creates new class from…

Continue reading