0
According to java 2+2=22.
https://code.sololearn.com/cKPCMv12fuSq/?ref=app Please explain how 2+2=22
1 Réponse
+ 6
Arguments passed inside the println method are generally considered as a string.
If you want to print 4 then do (2+2) because this will be executed first since the ( ) has higher precedence than +.
One more thing you can learn from here is that in Java there is only one overloaded operator which is "+".