String Concatenation and Assignment
What is printed as a result of executing the following code segment?
String newString = "Welcome";
String anotherString = "Home";
newString = anotherString + "Hello";
System.out.println(newString);
A
HomeHello
B
Welcome Hello
C
WelcomeHello
D
Home Hello
Question Leaderboard
| Rank | |||||
|---|---|---|---|---|---|
| #1 | hiboyshello | 1 | 1 | 0m 00s | 100 |
| #2 | patrickmeijer009 | 1 | 2 | 0m 30s | 60 |
| #3 | ianrojas473 | 1 | 1 | 0m 43s | 57 |
| #4 | jeonsaw1723 | 1 | 1 | 0m 48s | 52 |
| #5 | mattaana000 | 1 | 1 | 1m 15s | 25 |
| #6 | lsj08030922 | 1 | 1 | 2m 16s | -36 |
Items per page:
10
1 – 6 of 6
APFIVE