+ 1

What is if string stores as String name="";

What is if string stores as String name=" "; Null or garbage value?? Or what's the outpy

24th Feb 2019, 1:21 PM
Suresh Ayyanna
Suresh Ayyanna - avatar
2 odpowiedzi
+ 2
An empty string is also a valid string. The output will simply be nothing.
24th Feb 2019, 1:25 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
String str_name; link without object. String str_name = ""; link to object with value "".
3rd Mar 2019, 12:42 PM
M_N