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
Does java support multiple inheritance or not?
What do you mean by ordered and sorted in collections in java?
Does java list allow null?
What is a text string?
why we use merge option in hybernate pls give a ex snippet
What happens if an exception is throws from an object's constructor?
What is a local class in java?
can used Protected Class outside Function.?
How an object is serialized in java?
Is there any limitation of using inheritance?
List some features of the abstract class.
How many types of methods are there in java?
How does arraylist work in java?
What is the abstract class?
What is a variable declaration?