Domanda di colloquio di AR Systems(GA)

Why char array is preferred to store password than String in Java?