MCQs
No answer description available for this question.
Object class is superclass of every class in Java.
The iteration order of a Collection is the order in which an iterator moves through the elements
of the Collection. The iteration order of a LinkedHashMap is determined by the order in which
elements are inserted.
When a new LinkedHashMap is created by passing a reference to an existing Collection to the
constructor of a LinkedHashMap the Collection.addAll method will ultimately be invoked.
The addAll method uses an iterator to the existing Collection to iterate through the elements of
the existing Collection and add each to the instance of the new LinkedHashMap.
Since the iteration order of the LinkedHashMap is determined by the order of insertion, the iteration
order of the new LinkedHashMap must be the same as the interation order of the old Collection.
Constructors does not have any return type, not even void.
Memory is allocated to an object using new operator. box obj; just declares a reference to
object, no memory is allocated to it hence it points to NULL.
Its illegal to call max() only with comparator, we need to give the collection to be
None.