Static storage. “Static” is used here in the sense of “in a fixed
location” (although it’s also in RAM). Static storage contains data that is available for the entire time a program is running. You can use the static keyword to specify that a particular element of an object is static, but Java objects themselves are never placed in static storage.
-----<<Thinking In Java2>>
location” (although it’s also in RAM). Static storage contains data that is available for the entire time a program is running. You can use the static keyword to specify that a particular element of an object is static, but Java objects themselves are never placed in static storage.
-----<<Thinking In Java2>>
在用这个类实例化的对象(们)
之上一“层”的变量和方法
来控制这些对象!比如统计实例化了多少对象等等。我是这么理解的,不知道对不对!还有就是一些类的特殊的/基本的属性,
(比如Integer的MAX_VALUE属性等)
和最最常用的方法
(比如Math的pow方法等)这些就是用这方便了吧!
是说只要运行main(),static定义的东东就已经调用了吗?