Vidyalelo
Java Programming · Q30

Java Generics

Programming · Java Programming · question 30

Q30

In Java, what is the result of the expression `List list = new ArrayList<>();`?

A.
It creates a list of objects
B.
Compilation error
C.
Runtime error
D.
It creates a list of strings
Answer

Answer: Option D

Solution

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