0
Why char[] is preferred over String for passwords in Java?
The password field in Swing has a getPassword() (syntax: public char[] getPassword() ) which returns char[] instead of getText() which returns String. Does String pose a security threat whwn it comes to passwords?
2 odpowiedzi
+ 1
A previous discussion on similar subject:
https://www.sololearn.com/Discuss/1214318/?ref=app
+ 1
Thanks