1. Explain the internal workings of a HashMap.
2. Write a Java program. Given two Employee HashMaps, where the key is Rank, return the object if both ranks are equal.
3. What is the difference between Comparable and Comparator in Java?
4. If there are 500,000 records, how do you retrieve them?