import java.util.Set;
import java.util.TreeSet;
publicclass MainClass {
publicstaticvoid main(String[] a) {
Set<Apple> set = new TreeSet<Apple>();
set.add(new Apple());
set.add(new Apple());
set.add(new Apple());
System.out.println(set);
}
}
class Apple {
}
A. Compiler error.
B. No exception is thrown.