Well, it all depends on what you want your variables to be initialised to! There is no 'best answer' in this case, although I suspect a lot of people by default (and IDEs) would produce private String password; (which is effectively the same as private String password = null;).