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
What must a class do to implement an interface in java programming?
Lowest Common ancestor in a Binary Search Tree and Binary Tree.
Can we override the static method?
How does varargs work in java?
What is difference between calling start() and run() method of thread?
What is the significance of java packages?
Why is method overloading not possible by changing the return type in java?
What is a linkedhashmap java?
Will set allow duplicates in java?
How many bytes is a unicode character?
What is <> used for in java?
Is Java a dying language?
How is a structure different from array ?
Why is stringbuffer not immutable?
What does substring mean?