Collections Framework In Java - Study Mode
[#46] How can we remove an object from ArrayList?
Correct Answer
(C) remove() method and using Iterator
[#47] Which of these methods can randomize all elements in a list?
Correct Answer
(C) shuffle()
[#48] If two threads access the same hashmap at the same time, what would happen?
Correct Answer
(A) ConcurrentModificationException
[#49] Which of these methods can be used to obtain a static array from an ArrayList object?
Correct Answer
(C) toArray()
[#50] Which of these method is used to insert value and its key?
Correct Answer
(A) put()