且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

打印的执行顺序

更新时间:2023-11-30 10:06:04

在此表达式中:

a.i+" "+a.getI()

首先评估对 a.getI()的调用,然后通过连接 ai a.getI()形成字符串.>

The call to a.getI() gets evaluated first, and afterwards the string is formed by concatenating a.i plus a.getI()