hello everybody...
I am facing very problems in the Generics topic...below given is the question and the correct answers are options-a,b,c,e ...but i am not able to get it......
Please help me out by explaining that why these options are correct and why the rest ones are incorrect...
abstract class A<K extends Number>
{
// Insert here
}
which are the valid method declarations from the options given below..?
a. public abstract <K>K useMe(Object t);
b. public abstract <K> A<? extends Number> useMe(A<? super K>t);
c. public abstract <K> A<? super Number> useMe(A<? extends K>t);
d. public abstract <K> A<K> useMe(A<K>t);
e. public abstract <V extends K> A<V> useMe(A<V>t);
f. public abstract <V super K> A<V> useMe(A<V>t);
g. public abstract <V extends Character> A<? super V> useMe(A<K>t);
h. public abstract <V super Character> A<? super V> useMe(A<K>t);
Thanks in advance
Akhilesh Kumar