1.

String A ="26",B="100"; string D=A+B+"200"; int x=integer.parseInt(A); int y=integer.parseInt (B); int d =x+y; SOPln("result="+D);SOPln("result2="+d);

Answer» OUPUT:
result=26100200
result2=126
explanation
for STRING D the string CONCATENATION take place.
after conversion string to int value.
then d=x+y therefore it's ADD according to int values


Discussion

No Comment Found