MCQOPTIONS
Bookmark
Saved Bookmarks
→
Java Programming
→
Exceptions
→
Which of this interface is not a part of Java s co...
1.
Which of this interface is not a part of Java s collection framework?
A.
SortedMap
B.
List
C.
SortedList
D.
Set
E.
None of these
Answer» D. Set
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What is the output of below snippet?import java.util.*;public class Map_Example{ public static void main(String[] args) { Map mapSample = new TreeMap(); mapSample.put(4, null); mapSample.put(0, null); mapSample.put(3, null); mapSample.put(2, null); mapSample.put(1, null); System.out.println(mapSample); }}
What is the output of this program?import java.util.*; public class TreeSet_Example { public static void main(String args[]) { TreeSet object = new TreeSet(); object.add("7"); object.add("0"); object.add("9"); object.add("5"); object.add("6"); System.out.println(object); } }
What is the output of this program?import java.util.*; public class vector_Example { public static void main(String args[]) { Vector object = new Vector(6,3); object.addElement(new Integer(5)); object.addElement(new Integer(7)); object.addElement(new Integer(9)); System.out.println(object.elementAt(2)); } }
What is the output of this program?import java.util.*; public class Map_Exmple { public static void main(String args[]) { TreeMap object = new TreeMap(); object.put("I", new Integer(9)); object.put("L", new Integer(12)); object.put("U", new Integer(21)); System.out.println(object.entrySet()); } }
What is the output of this program?import java.util.*; public class Map_Example { public static void main(String args[]) { HashMap object = new HashMap(); object.put("I", new Integer(9)); object.put("L", new Integer(12)); object.put("U", new Integer(21)); System.out.println(object.get("L")); } }
What is the output of this program?import java.util.*; public class Map_Example { public static void main(String args[]) { HashMap object = new HashMap(); object.put("D", new Integer(4)); object.put("E", new Integer(5)); object.put("F", new Integer(6)); System.out.println(object.keySet()); } }
What is the output of this program?import java.util.*; public class Map_Example { public static void main(String args[]) { HashMap object = new HashMap(); object.put("D", new Integer(4)); object.put("E", new Integer(5)); object.put("F", new Integer(6)); System.out.println(object); } }
What is the output of this program?import java.util.*; public class hashtable_Example { public static void main(String args[]) { Hashtable object = new Hashtable(); object.put("I", new Integer(10)); object.put("L", new Integer(60)); object.put("U", new Integer(25)); System.out.print(object.contains(new Integer(25))); } }
What is the output of this program?import java.util.*; public class properties_Example { public static void main(String args[]) { Properties object = new Properties(); object.put("PQ", new Integer(23)); object.put("SR", new Integer(46)); object.put("UV", new Integer(25)); System.out.print(object.keySet()); } }
What is the output of this program?import java.util.*; public class hashtable_Example { public static void main(String args[]) { Hashtable object = new Hashtable(); object.put("P", new Integer(12)); object.put("Q", new Integer(21)); object.put("R", new Integer(18)); System.out.print(object.toString()); } }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies