MCQs on Java Online

Page 1

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. *


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
MCQs on Java Online by Programming-Media - Issuu