title: String or char[] for password when using JDBC?
body: <p>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?</p>
  
  <pre><code>public final void Login(String username, String password){
  ...
  conn = DriverManager.getConnection(url, username, password);
  ...
  }
  </code></pre>
  
  <p>Or could a char[] be used here in place of the String?</p>