I'm writing a little Program to test the security of Java in general.
public char[] getPW(){
return pwField.getPassword();
}
This method return an char array. But why is that so? Is there any concrete idea behind? Why doesn't it returns a String?