Generics was first introduced in JDK 5 and generic in simple term refers general. By using generics, it is possible to create a single class that automatically works with different types of data. A class, interface or method that operates on a parameterized type is called generic or generic class or generic method.

Generics – Java Programming

In this “Generics - Java Programming” you will learn about following topics:

  1. Introduction to Generics
  2. Properties of Generics
  3. Generics Class with Parameters
  4. General Form of a Generic Class
  5. Creating a Generic Method
  6. Creating Generic Constructor
  7. Creating Generic Interface
  8. Polymorphism in Generics

==== Point to Note ====

This article Generics - Java Programming is contributed by Madan Raj Pandey Sir, a teacher of Dhangadi Engineering College.

If you like to contribute, you can mail us BCA Notes, BCA Question Collections, BCA Related Information, and Latest Technology Information at [email protected].

See your article appearing on BCA Notes (Pokhara University) main page with your designation and help other BCA Students to excel.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

BCA 5th Semester Java Programming Notes Pdf: