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 is the function of java?
What is nullpointerexception in java?
Explain restrictions for using anonymous inner classes?
Can we create object of static class?
Is string pool garbage collected?
What is equals method in java?
How to sort a collection of custom Objects in Java?
Where are variables stored?
Which package is always imported by default?
Explain java coding standards for constants?
Can we write a class without main method in java?
What is the file extension for java?
How does map works in java?
Can we have more than one package statement in source file ?
What initialize variables?