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
Which of the following is not a class?
A String literal in Java is surrounded by a pair of _____?
If an AND (&) operator is applied with two integers, what is this operator?
Polymorphism that is resolved during compiler time is known as
Which of those permits the storage of the many null values?
Which of the following statement is correct?
Which is true about enum constants in Java?
What is the unit for 1000 in the below statement? ob.sleep(1000)
Which of the following statements about abstract methods/classes in JAVA is true?
Discusssion
Login to discuss.