Vidyalelo
Java Programming · Q1

Java Generics

Programming · Java Programming · question 1

Q1

What is the main purpose of generics in Java?

A.
To enable type-safe collections and eliminate type casting
Answer
B.
To increase program execution speed
C.
To simplify the syntax of Java code
D.
To improve memory management

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board