📜  静态变量 java 代码示例

📅  最后修改于: 2022-03-11 14:52:48.286000             🧑  作者: Mango

代码示例1
Static keyword is used a lot in java. 
 Static means, you
can access those static variables
without creating an object,
just by using a class name.
This means that only one instance of
that static member is created which
is shared across all instances of the class.
Basically we use static keyword when
all members share same instance.