logo

Crowdly

Browser

Add to Chrome

Which are correct uses of generics (here, R,S,T are type parameters)? ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Which are correct uses of generics (here, R,S,T are type parameters)?

a)

class A<T,S> {

T x;

R y;

}

b)

class A<T,S> {

S x;

T y;

}

c)

class A { }

class B <T extends Throwable> extends A { }

d)

class A extends Thread {}

class B<T> extends A { }

More questions like this

Want instant access to all verified answers on moodle.jku.at?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome