MCQ Questions on Java Online Test
1. The hasMoreElements() method of Enumeration in Iterator has been changed to: a) hasNextElement() b) hasNext() c) isNext() d) name remains the same
2. What does TreeSet use internally to store elements? a) HashMap b) LinkedHashMap c) TreeMap d) HashSet
3. Select the lines that will compile without warning or error. *