+ 1
Why do variables show no output?
3 odpowiedzi
+ 5
//Think of them as empty boxes
String box = "ball";
//lets open the box
System.out.print(box);
//output ball
+ 3
variable only keep value you need to print there value to see output
+ 1
it will show output without initalizing bt this is not applicable for local variable it is only for static and class variable