HashMap vs Hashtable vs ConcurrentHashMap
QuizMediumJava onlyAsked in: Accenture, Capgemini, TCS
Which statements are true? Pick all that apply.
HashMapallows one null key and any number of null valuesHashtableallows a null keyConcurrentHashMapis thread-safe and rejects null keys and null valuesHashtableis the modern choice for thread-safe maps
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.