Both name and pass variables are instance variables, and we haven't given them any values, so they take their default values. For Boolean default value is false and for string which is not a primitive type default is null So at line 7, null will printed as the value of the variable name, and at line 8 false will be printed. Hence Option C is correct. As explained above options A, B and D are incorrect. Code compiles fine so option E is incorrect. https://docs.oracle.com/javaseAutorial/java/javaOOAariables.html