(Choose 1 answer)
}
}
What will be the output of the following Java program?
import java.util.*;
class Output
{
public static void main(String args[])
{
TreeSet t = new TreeSet();
t.add("2");
t.add("9");
t.add("1");
t.add("5");t.add("6");
System.out.println(t);
A. [1, 2, 5, 6, 9]
B. [2, 9, 1, 5, 6]
C. [6, 5, 1, 9, 2]
D. [9, 6, 5, 2, 1]
Exit 27