类变量只在类声明的时候初始化一遍,而实例变量在每次生成新对象时都要初始化一遍。 更多细节详见: https://www.jianshu.com/p/3aca78a84def https://blog.csdn.net/feng98ren/article/details/80068036