Discussion :: Java.lang Class - Finding the output (Q.No.13)
|Avinash said: (Jan 16, 2012)|
|But the execution will run from RHS to LHS, then answer will be 567 because in that case either of the operands will be string leading to concatenation of strings|
|Charudatta said: (Aug 25, 2015)|
I compile this code answer is 117. The execution of code is from LHS to RHS.
|Sanjay Chitroda said: (Aug 25, 2017)|
|For i1=5 and i2=6.
i1 + i2 = 11 // normal addition.
Then s1='7' is a string so that concat behind '11'+'7'=117.
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.