//Sop means System.out.println(for print)
Sop(s1+10); // java10
//10 is treated like a string.
//First 10 and 20 were added and then 30 concat with s1.
note-Left to right operation takes place with the plus operator ... first addition will happen and then concat.
//First division took place and then concat method was used
Note--BODMAS rule is used in Java ... if you do not know the bodmas rule then do a Google search.
//first s1+10 =java10
java10 -5 is not possible, so we will get error.
If you found this post useful, then follow me❤️