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
How would you use Bubble Sort to sort the number of elements?
What is exception in java?
What is bufferedwriter?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Why are there no global variables in java?
Differentiate between vector and array list.
Why we use multi threading instead of multiprocessing?
What is main function purpose?
How do you add an element to an arraylist in java?
Can a class have multiple superclasses?
What is illegal identifier in java?
What is lambda programming?
Can we have try block without catch block?
Can we sort array in java?
What are the advantages of exception handling?