Home / Programming MCQs / JAVA MCQs / Question
T
Q. What will be the output of given code
import java.util.Iterator; import java.util.Set; import java.util.TreeSet; public class ConcurrentSkipListMapTest { public static void main (String args) { Set set = new TreeSet(); set.add(1); set.add(“2”); set.add(3); Iterator iterator = set.iterator(); while (iterator. hasNext()) { System. out. print(iterator. next()+””); } } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
A method without the body is called ________ method.
What is not the use of “this” keyword in Java?
A single try block must be followed by which of these?
What is the output of a Logical OR (|) operation if one of the inputs/operands is true?
Which keyword is used by classes to implement an interface?
Which of this package contains classes and interfaces for networking?
How many trAnsweraction isolation levels are defined in java)sql.Connectioninterface?
Which of the following statement is false?
Which of the following automatic type conversion will be possible?
Discusssion
Login to discuss.