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

What are the methods to rectify ambiguities in the interfaces in JAVA?

1155


When will we prefer to use set and list in java and why?

1023


What are the advantages of functions?

956


Can classes declared using the abstract keyword cab be instantiated?

1098


Explain about transient variables in java?

1150


What does java se mean?

1096


What does this () mean in java?

1034


Is 0 true or false?

1050


What is the maximum size of hashmap in java?

1059


What is the diffrence between inner class and nested class?

1142


How do you bind variables?

1159


Is zero a positive integer?

1146


What is wrapper class example?

1051


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2898


What is difference between arraylist and list in java?

1134