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 is java jit compilers?

939


What is the purpose of checked and unchecked exceptions in JAVA?

954


What is static import?

1092


Why set do not allow duplicates in java?

1001


Explain public static void main(string args[]).

1102


How do you sort words in java?

877


Difference between static binding and dynamic binding?

1035


Does java have a compiler?

976


Is Constructor possible in abstract class in java ?

983


Write a method that will remove given character from the string?

960


Why we used break and continue statement in java?

1059


What does java edition mean?

1034


List implementations of list interface?

985


What is the difference between a choice and a list?

1021


What is difference between pointer and reference?

996