What method is been used here? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 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