6 years ago in Java Generics

Which of these type parameters is used for a generic class to return and accept any type of object?

[A] K
[B] N
[C] T
[D] V
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 219
Correct 72
Incorrect 41
Viewed 106

Answers

Guest
Guest
Bharath
Bharath - 9 months ago

Bharath from Hyderabad, India is saying T is correct answer

jean-michel michel
jean-michel michel - 11 months ago

jean-michel michel from Toulouse, France is saying T is correct answer

shubham adne
shubham adne - 11 months ago

shubham adne from Pune, India is saying T is correct answer

Laya
Laya - 1 year ago

Laya from Hyderabad, India is saying N is correct answer

Mahendra Pahadiya
Mahendra Pahadiya - 1 year ago

Mahendra Pahadiya is saying T is correct answer

Related Questions

Why are generics used?

  • [A] Generics make code more fast.
  • [B] Generics make code more optimised and readable.
  • [C] Generics add stability to your code by making more of your bugs detectable at compile time.
  • [D] Generics add stability to your code by making more of your bugs detectable at run time.

Which of these Exception handlers cannot be type parameterized?

  • [A] catch
  • [B] throw
  • [C] throws
  • [D] All of the mentioned

Which of these is an correct way of defining generic class?

  • [A] class name(T1, T2, …, Tn) { /* … */ }
  • [B] class name { /* … */ }
  • [C] class name[T1, T2, ..., Tn] { /* … */ }
  • [D] class name{T1, T2, …, Tn} { /* … */ }