You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Test{
public void test(){
// 为什么此局部变量必须是final修饰
final int i=0;
// 局部类分配在堆上,局部变量i在栈上分配,若方法执行结束后,局部变量内存释放,为什么局部类中访问的局部变量?
class MyClass{
public void print(){
System.out.println(i);
}
}
}
}
讲原理的都能看懂,能不能开一个讲JVM源码系列的呢,有实战内容的
The text was updated successfully, but these errors were encountered: