5 years ago in Java Generics

Which of the following is incorrect statement regarding the use of generics and parameterized types in Java?

[A] Generics provide type safety by shifting more type checking responsibilities to the compiler.
[B] Generics and parameterized types eliminate the need for down casts when using Java Collections.
[C] When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve
[D] All of the mentioned
Loading...
Next Question

Overall Stats

Attempted 236
Correct 28
Incorrect 70
Viewed 138

Answers

Guest
Guest
PRANAY DATE
PRANAY DATE - 4 days ago

PRANAY DATE is saying Generics and parameterized types eliminate the need for down casts when using Java Collections. is correct answer

Pavan Kumar
Pavan Kumar - 3 months ago

Pavan Kumar from Guntur, India is saying When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve is correct answer

Neha Goyal
Neha Goyal - 3 months ago

Neha Goyal is saying When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve is correct answer

keerthi vallabaneni
keerthi vallabaneni - 3 months ago

keerthi vallabaneni from Nellore, India is saying When designing your own collections class (say, a linked list), generics and parameterized types allow you to achieve is correct answer

Lê Hoàng Minh
Lê Hoàng Minh - 3 months ago

Lê Hoàng Minh is saying All of the mentioned is correct answer

Related Questions

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

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

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.