1 Why character array is better than String for storing password in Java was recent question asked to one of my friend in a java interview.
2 Since any one who has access to memory dump can find the password in clear text and that's another reason you should always used an encrypted passwo..
3 But as my friend said any question related to String must have a clue on special property of Strings like immutability and he used that to convince ..