6 years ago in Java Generics

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.
Loading...
Next Question

Overall Stats

Attempted 404
Correct 63
Incorrect 79
Viewed 262

Answers

Guest
Guest
Sakina Saifee
Sakina Saifee - 9 hours ago

Sakina Saifee is saying Generics make code more optimised and readable. is correct answer

Hoàng Mai Phương
Hoàng Mai Phương - 2 weeks ago

Hoàng Mai Phương is saying Generics make code more optimised and readable. is correct answer

Honor
Honor - 1 month ago

Honor from Visakhapatnam, India is saying Generics add stability to your code by making more of your bugs detectable at compile time. is correct answer

Akshat Mishra
Akshat Mishra - 1 month ago

Akshat Mishra from New Delhi, India is saying Generics add stability to your code by making more of your bugs detectable at run time. is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying Generics make code more optimised and readable. is correct answer

Related Questions

Which of these instance cannot be created?

  • [A] Integer instance.
  • [B] Generic class instance.
  • [C] Generic type instance.
  • [D] Collection instances.

Which of the following cannot be Type parameterized?

  • [A] Oveloaded Methods
  • [B] Generic methods
  • [C] Class methods
  • [D] Overriding methods

Which of the following allows us to call generic methods as a normal method?

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