Answer Posted / tarun
Please go through this link for more knowledge
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
Generics is the new feture added in the JAVA5.0. It feature
is useful in some broad applications when we are writing any
database insertion logic for the same type of Object.
suppose we have to insert a list of Employee Object this
will be declared as List<Employee> or suppose we have a list
of long values then we can simply type cast it as
List<Long>, Similarly List<String>, List<Integer>. The
generics class are used by Wrapper classes or any other
classes. Most useful in ORM technologies also.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is java jit compilers?
What is the purpose of checked and unchecked exceptions in JAVA?
What is static import?
Why set do not allow duplicates in java?
Explain public static void main(string args[]).
How do you sort words in java?
Difference between static binding and dynamic binding?
Does java have a compiler?
Is Constructor possible in abstract class in java ?
Write a method that will remove given character from the string?
Why we used break and continue statement in java?
What does java edition mean?
List implementations of list interface?
What is the difference between a choice and a list?
What is difference between pointer and reference?