Semantic difference between object expressions and declarations
object expressions are executed (and initialized) immediately, where they are used;
object declarations are initialized lazily, when accessed for the first time;
a companion object is initialized wh
转载
2018-01-11 13:42:48 ·
320 阅读 ·
0 评论