62,628
社区成员
发帖
与我相关
我的任务
分享
宝哥 说的很清楚了,this 这个东西用起来,只是个人的习惯,当然有的地方不能省……至于性能上,个人觉得没什么区别
class A{
static void f(){
}
void ff(){
A a = null;
this.f();
A.f();
a.f();
}
}
void ff();
Code:
0: aconst_null
1: astore_1
2: invokestatic #16 // Method f:()V
5: invokestatic #16 // Method f:()V
8: invokestatic #16 // Method f:()V
11: return