Examveda

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: Option D


This Question Belongs to Java Program >> Generics In Java

Join The Discussion

Related Questions on Generics in Java