Frage im Vorstellungsgespräch bei Clairvoyant

Java - Why string is immutable? How hashmap works internally?