Learn example of how to remove element from List in Java using for iterator and while loop.
Learn how to print array in Java using Arrays. Displaying array either int or string or any another type is straight forward by using java.util.Arrays java utility class.
5 ways to iterate List in Java, traversal of Java List or ArrayList, Vector, LinkedList object to get its values. using for-each, for loop, iterator, while loop, jdk 8 forEach.stream().
How to remove entry from HashMap in Java, or it’s implementation class HashMap, Hashtable, LinkedHashMap, ConcurrentHashMap. removing element from map java.
Learn different ways to iterate Map in Java using for-each loop keySet, entrySet, for loop, while loop.
Difference between HashMap and HashSet is one of the most frequently asked interview questions during any level of core java interview.
Learn Enumeration VS Iterator in Java with different aspects. Enumeration for read operation while
Learn different aspects of fail-fast vs fail-safe iterator in Java. In Java fail-fast iterator and fail-safe iterator intent are same to some extent but one abort operations another not abort.
HashMap Vs HashTable Vs SynchronizedMap Vs ConcurrentHashMap. There is a number of questions that can be raised in your mind when we think about HashMap, Hashtable, SynchronizedMap, and ConcurrentHashMap.
HashMap vs concurrentHashMap, well, this is one of the important interview question, in another way, what are the basic differences between HashMap and ConcurrentHashMap?