/* Missing statements ? */
public class NewTreeSet extendsjava.
util.
TreeSet
{
public static void main(String [] args)
{
java.
util.
TreeSet t = newjava.
util.
TreeSet();
t.clear();
}
public void clear()
{
TreeMap m = new TreeMap();
m.clear();
}
}

which two statements, added independently at beginning of the program, allow the code to compile

No statement is required
importjava.
util.
*;import.
java.
util.
Tree*;
importjava.
util.
TreeSet;
importjava.
util.
TreeMap;

1 only
 
2 and 5
 
3 and 4
 
3 and 5
 

Answer

A Foxoyo User

Statistics

0 Level
0
Attempts
0
Accuracy
0
Bookmark
2
Tags

Quizes

Related Questions