09 2021 档案

摘要:小结下 JVM的组成部分,及其作用 组成部分: 类加载器(ClassLoader) 运行时数据区(Runtime Data Area) 执行引擎(Execution Engine) 本地库接口(Native Interface) 作用: 首先通过类加载器会把Java代码转成字节码 运行时数据区再把字 阅读全文
posted @ 2021-09-15 10:14 hehell 阅读(68) 评论(0) 推荐(0)
摘要:输入一个数字n,交替打印foo和bar n 次 public static void main(String[] args) { int n = 10; //打印次数 FooBar fooBar = new FooBar(n); Runnable printFoo = () -> { System. 阅读全文
posted @ 2021-09-04 17:39 hehell 阅读(224) 评论(0) 推荐(0)