jvm icon indicating copy to clipboard operation
jvm copied to clipboard

能不能讲点JVM源码系列?

Open jsohpill opened this issue 6 years ago • 2 comments

讲原理的都能看懂,能不能开一个讲JVM源码系列的呢,有实战内容的

jsohpill avatar May 29 '19 09:05 jsohpill

@jsohpill 后续考虑新增

yanglbme avatar Jun 10 '19 09:06 yanglbme

为什么局部类或者匿名类能访问局部变量。如下示例:

class Test{ public void test(){ // 为什么此局部变量必须是final修饰 final int i=0; // 局部类分配在堆上,局部变量i在栈上分配,若方法执行结束后,局部变量内存释放,为什么局部类中访问的局部变量? class MyClass{ public void print(){ System.out.println(i); } } } }

micwsx avatar Apr 10 '21 02:04 micwsx