Topic / 115 questions

Java MCQs

Page 2 of Java multiple-choice questions with answers. Tap an option to check yourself.

Page 2 of 6

Advertisement
Question 26 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