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 / rohitjadhav

Hi,

Generics is Template support added in JDK1.5 where in we can maintain templates of object with particular type and also this object is restricted to accept type other than specified one at code time.
This help reducing runtime exception and also we can create predefined well formed templates of Type.

Best Example.

http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html#generics

Code written to use the generics feature should not be a lot slower or a lot more memory-intensive than non-generic code. Using ten percent more space or time than ....

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does java support multiple inheritance or not?

1194


What do you mean by ordered and sorted in collections in java?

1043


Does java list allow null?

1041


What is a text string?

1146


why we use merge option in hybernate pls give a ex snippet

2032


What happens if an exception is throws from an object's constructor?

1179


What is a local class in java?

1092


can used Protected Class outside Function.?

1158


How an object is serialized in java?

1039


Is there any limitation of using inheritance?

1154


List some features of the abstract class.

1121


How many types of methods are there in java?

1068


How does arraylist work in java?

1174


What is the abstract class?

1094


What is a variable declaration?

1034