Q. An attempt to add the null key to a TreeSet will result in:

  • (A) Will compile
  • (B) Compile time Exception
  • (C) Error
  • (D) Runtime – NullPointerException
πŸ’¬ Discuss
βœ… Correct Answer: (D) Runtime – NullPointerException

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
347
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Uday Singh
Publisher
πŸ“ˆ
92%
Success Rate