How to use Generics to write Parameterized Java Class

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Generic of Java 5 allow you to write parameterized class and method which can provide type safety during compile time.

Statistics

  • Total Hits - 27054

  • Total Votes - 98 votes

  • Vote Up - 42 votes

  • Vote Down - 56 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2013-01-20 07:12:10

Description

Generic of Java 5 allow you to write parameterized class and method which can provide type safety during compile time. Several example of parameterized classes are present in JDK but when it comes to write your own parameterized class or method, it becomes tricky. This Java tutorial shows you, How to create parameterized class and method in Java. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements