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 method is used to change the name of a thread?
What is the output of Java program below?
Which of the following is a valid syntax to synchronize the HashMap?
What is the output of the Java program?
Thread class constructor allocates a new thread object
Which primitive data types have wrapper classes available?
The SessionFactory is heavyweight object.
Which of these class is used to read and write bytes in a file?
Discusssion
Login to discuss.