Which of the following is true?
A) A TreeSet created with the no-arg constructor expects its elements to implement the Comparable interface
B) A TreeSet created with the no-arg constructor expects its elements to implement the Comparator interface
C) The load factor of Tree Set should never exceed 50% to ensure maximum performance
D) The load factor of Tree Set should never exceed 75% to ensure maximum performance
Correct Answer:
Verified
Q35: A collision occurs when
A) objects whose class
Q36: A HashMap
A) is a subclass of Map
Q37: Comparable
A) specifies a single method,compareTo
B) specifies three
Q38: Comparator
A) specifies a single method,compareTo
B) specifies three
Q39: Ideally,the hashcodes of two objects
A) should be
Q41: The enhanced for loop,when used on a
Q42: Which of the following is true?
A) The
Q43: In a Map object
A) It is possible
Q44: The ListIterator method that replaces an existing
Q45: Which of the following is true?
A) Collections
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents