Subject / 929 questions

Programming MCQs

Page 14 of Programming multiple-choice questions with answers. Tap an option to check yourself.

Page 14 of 47

Advertisement
Question 266 Java

What is the main benefit of using generics in Java collections?

Correct answer C. Type errors are caught at compile time and casts are avoided

Open question
Advertisement
Advertisement