之前写的b站直播订阅通知的程序内存占用始终不能满意,想到java是跑在jvm上的,是否jvm本身就需要占用那么多的内存呢,决定打开jconsole来看一看.java内存分为堆和非堆,来看定义:
Heap memoryThe heap memory is the runtime data area
...
java8开始接口支持了默认方法,从此mixin也变为可能了.
先来看看mixin是什么:
In object-oriented programming languages, a mixin is a class that contains a combination of methods fro
...