java----static

static的特点:

  (1)随着类的加载而加载

      回想main方法:public static void main(String[] args){}

  (2)优先于对象存在

  (3)被类的所有对象共享

  (4)可以通过类名来调用

原文地址:https://www.cnblogs.com/chen-cai/p/9461196.html