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
3
Answer:
System.out.println( hi+mom);
OR
System.out.println(hi.concat(mom));
Answered by
1
Answer:
By using '+' operator or concat method
Similar questions
Political Science,
6 months ago
Social Sciences,
6 months ago
History,
6 months ago
English,
11 months ago
Biology,
11 months ago