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 are the types of exceptions?
What do you know about the garbage collector?
What is hashing principle in java?
Explain parallel processing in java8?
Can you declare an interface method static?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is method overloading and method overriding?
Can we pass a primitive type by reference in java? How
How do you sort data in java?
What is difference between word and integer?
What are adapter classes?
What is skeleton and stub?
What do you mean by exception handling in Java?
What is the access scope of protected access specifier?
Write a program in java to establish a connection between client and server?