Computer Science, asked by kanchikhurana, 7 months ago

8. Show two ways to concatenate the following two strings together to get the string "Hello, dad.":
String hi = "Hello,";
String mom = "dad.";​

Answers

Answered by Tonks
3

Answer:

System.out.println( hi+mom);

            OR

System.out.println(hi.concat(mom));

Answered by pawanjot07548
1

Answer:

By using '+' operator or concat method

Similar questions