AkhileshA KumarK

Greenhorn
+ Follow
since Jan 26, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by AkhileshA KumarK

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