5 years ago in Java Generics

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

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

Overall Stats

Attempted 171
Correct 64
Incorrect 45
Viewed 62

Answers

Guest
Guest
PRANAY DATE
PRANAY DATE - 4 days ago

PRANAY DATE is saying T is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying N is correct answer

Laya
Laya - 2 months ago

Laya from Hyderabad, India is saying N is correct answer

basil
basil - 3 months ago

basil is saying K is correct answer

sumit maheshwari
sumit maheshwari - 3 months ago

sumit maheshwari is saying T is correct answer

Related Questions

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} { /* … */ }

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 the following reference types cannot be generic?

  • [A] Anonymous inner class
  • [B] Interface
  • [C] Inner class
  • [D] All of the mentioned

Which of these types cannot be used to initiate a generic type?

  • [A] Integer class
  • [B] Float class
  • [C] Primitive Types
  • [D] Collections