What will happen after the following code compilation and execution:

class TreeTest {
    private static Set<String> set = new TreeSet<String>();
        public static void main(String[] args) {
        set.add("one");
        set.add("two");
        set.add("three");
        set.add("/u000a");
        set.add("/u000d");
        set.add("/u000c");
        set.add("1");
        set.add("2");
        set.add("3");        
        for (String string : set) {
            System.out.print(string + " ");
        }
    } 
}
Java
Java Quiz
Start Quiz

or Read more about Java Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback