+ 4
What is output of "hi"+""+"hello"
5 Answers
+ 3
You have 3 strings:
The first contains the 'hi'
The second contains nothing
The third contains 'hello'
In this case, the second is not useful, but it can be if you add a space or a coma like:
"hi" + " " + "hello": hi hello
"hi" + ", " + "hello": hi, hello
+ 2
hihello
+ 2
No use
+ 2
Initialize an empty String using
String s="";
Convert other types easily to String by adding ""
String s = 15 + "";
0
Then what is use of ""