If you try to add the null key to a TreeSet, you'll get the following error:----
A.Is planning to compile
B. Exception at Compile Time
C. NullPointerException - Runtime
D. Mistake
Answer:C
If you try to add the null key to a TreeSet, you'll get the following error:----
A.Is planning to compile B. Exception at Compile Time C. NullPointerException - Runtime D. Mistake
Explanation: NullPointerException at runtime