Possible Duplicate:
Why is char[] preferred over string for passwords?
I read somewhere that storing a sensitive key as a char[] rather than a String is better because the latter can be found in the memory. It also makes a little sense because of JPasswordField's getText() method being Deprecated.
Is this true?