If two threads access the same hashmap at the same time, what would happen?
(a) ConcurrentModificationException
(b) NullPointerException
(c) ClassNotFoundException
(d) RuntimeException
I had been asked this question in an online interview.
Asked question is from Data Structures-HashMap topic in portion java.util – The Collections Framework of Java