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:

Verified
Correct Answer:
Verified
Q19: Which statement is false?<br>A) Queue is a
Q20: Which statement is false?<br>A) A List is
Q21: Maps allocate keys to values and cannot
Q22: The collections framework provides various _ collection
Q23: Which statement about hashing is false?<br>A) Hashing
Q25: Which of the following performs a boxing
Q26: Which statement is false?<br>A) All built-in collections
Q27: Collections method _ returns true if two
Q28: Which statement is false?<br>A) Each primitive type
Q29: Iterator method _ determines whether the Collection