Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is generics in jdk1.5?

Answer Posted / tarun

Please go through this link for more knowledge
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf

Generics is the new feture added in the JAVA5.0. It feature
is useful in some broad applications when we are writing any
database insertion logic for the same type of Object.
suppose we have to insert a list of Employee Object this
will be declared as List<Employee> or suppose we have a list
of long values then we can simply type cast it as
List<Long>, Similarly List<String>, List<Integer>. The
generics class are used by Wrapper classes or any other
classes. Most useful in ORM technologies also.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we pass null as argument in java?

943


Can a variable be local and static at the same time?

1002


What are the differences between Java 1.0 and Java 2.0?

2271


Explain polymorphism citing an example.

1040


How do you calculate roots in java?

1085


What is an array length?

902


How to convert string to byte array and vice versa?

1086


Why string is a class?

938


what state does a thread enter when it terminates its processing? : Java thread

1047


What is meant by interface?

1052


Can you extend singleton class?

1099


What is the difference between a local variable and an instance variable?

1103


What java ide should I use?

989


What is a pointer and does java support pointers?

1006


What things should be kept in mind while creating your own exceptions in java?

1160