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 are the methods to rectify ambiguities in the interfaces in JAVA?
When will we prefer to use set and list in java and why?
What are the advantages of functions?
Can classes declared using the abstract keyword cab be instantiated?
Explain about transient variables in java?
What does java se mean?
What does this () mean in java?
Is 0 true or false?
What is the maximum size of hashmap in java?
What is the diffrence between inner class and nested class?
How do you bind variables?
Is zero a positive integer?
What is wrapper class example?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is difference between arraylist and list in java?