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
Can we clone singleton object?
What is a data structure java?
Can a variable be local and static at the same time?
Which is bigger float or double?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What do you understand by a Static Variable?
Is it necessary that each try block must be followed by a catch block?
What are the four pillars of java?
Can a class be defined inside an interface?
What’s the difference between the methods sleep() and wait()?
What is the difference between char and char *?
what is the purpose of "virtual"?
What is the difference between math floor and math round?
What is the common usage of serialization?
Does collectionutils isempty check for null?