There is no difference, however this is not a mistake either. In this case:
"1" + 1
you are using the Java built-in function to concatenate something into a String. In the end, many people convert numbers to strings using the following "idiom":
String s = "" + 5;
It works in Scala, and the result with java.lang.Stringis the same as in Java.
On the other hand:
1 + "1"
a little harder. This is translated into:
1.+("1")
+() Int.+, Int.scala:
final class Int extends AnyVal {
def +(x: String): String = sys.error("stub")
String Predef.scala:
type String = java.lang.String
"". , .