Declaring a variable as such:
private String concatenation;
would have System.out.println(concatenation) show this:
null
Which would be a string of length 4, and not a null(of boolean type as in null or !null) value. This would make sense if I delcared it … = "null";, but I didn't.
but if it is declared as:
private String concatenation = "";
then, System.out.println(concatenation) would show this:
` ` // No clue how to get a space to show up in SO so I am surrounding it with ticks
Why does Java not just create it as an Object with an empty string, why do I have to define it as being empty.