Java null , String. String, += "Hello World" str.
String str=null;
str+="Hello World";
System.out.println(str);
Basically you say Java: pass the strtype to the variable Stringand assign it a value null; now add and assign ( +=) String"Hello World" to the variable str; print nowstr
user3127722
source
share