+ 1
If a variable used in println function whether the variable name is printed or variable value is printed?
3 Respuestas
+ 16
depends whether U putted variable in double quotes or not
System.out.println(var); //prints value of variable var
System.out.println("var"); //prints var
+ 2
thank you