Jun 11, 2022

Generic Class Example in Java

In this post we are going to learn what is generic class with example. Generic class in java example. 

A Generic class means in that class we can use any type as parameter(T).  In this example we are using the T type parameter to create a generic class.

Jun 8, 2022

Example of a Constructor in Java

In this post we are going to create a class in Java with constructor. So let's see how to create a class in Java which contains constructor method.  

First of all we need to know what is a constructor in Java.