Solved

Java Supports Type Inferencing with the ≪> Notation in Statements

Question 24

Multiple Choice

Java supports type inferencing with the <> notation in statements that declare and create generic type variables and objects. For example, the following line: List<String> list = new ArrayList<String>() ;
Can be written as:


A) List<> list = new ArrayList<>() ;
B) List<> list = new ArrayList<String>() ;
C) List<String> list = new ArrayList<>() ;
D) List<String> list = new ArrayList() ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions