Explain the inner workings of a HashMap in Java.

Technical