📜  java代码示例中的static关键字

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

代码示例2
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.