There are two kind of '+' operators in the statement, one of String object and one of Integer object:
String s = 10 + 30 +" Sachin " + 40 + 40;
The Operation that apply first is '10 + 30'. Let's look at the value of '10', this is interpreted to Integer object that activate the operator '+' on value '30' which results as Integer of 40.
The next operation is the last result 40 with ' Sachin ': 40 + ' Sachin '. Integer object that activate '+' operator on String object which results String object of '40 Sachin '.
The next operation is the last result String object ('40 Sachin ') that adds Integer 40 which results '40 Sachin 40'.
In the same manner the addition of the last '40', which finally results in
'40 Sachin 4040'.