If you decompile your classes with javap -c -p -constants , for example, you will see these lines:
public class DeleteMe { private static final String test = "def"; public static void main(String[] args) { String test = "abc"; } }
will give (important two lines):
private static final java.lang.String test = "def"; ldc
Otherwise, storing passwords inside your application is really bad, usually people use some kind of database where passwords are stored, for example.
You also need to read about String and char[] for passwords.
Eugene
source share