Domanda di colloquio di Infosys

Why string is immutable? Java program to sort map by value