Question 17
Back to Exercise
Which statement about Hashtable is true?
- A It allows a null key
- B It is a legacy synchronized class that allows no null keys or values Correct
- C It keeps keys sorted
- D It is faster than HashMap
Correct Answer: Option B
Use HashMap, or ConcurrentHashMap for concurrency.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!