I was decompiling some approaches on string concatenation, like with constants and values etc., when I saw following code
val a = "Test " + 2 val b = "Test ".plus(2)
is decompiled in java side to
String h = "Test 2"; String i = "Test " + 2;
plus is operator function, why does this happen ? Shouldn’t they produce exactly same output ?