This comes from a security point of view.Best practice says not to use a String to store a password, but a char[]. Does this apply to using a password at any time? For example, it is acceptable to use a String to hold a password when using JDBC?
public final void Login(String username, String password){
...
conn = DriverManager.getConnection(url, username, password);
...
}
Or could a char[] be used here in place of the String?