0

What method is been used here?

String combineWords="I'm number "; int age =8; combineWords+=age; System.out.println(combineWords)

19th Mar 2022, 6:44 PM
RAPHEAL KUMA
RAPHEAL KUMA - avatar
1 Answer
+ 4
In your example the + is working as the concatenate operator for the string. Therefore output is: I'm number 8
19th Mar 2022, 6:59 PM
William Owens
William Owens - avatar