Pergunta de entrevista da empresa AR Systems(GA)

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