📜  java代码示例中的静态关键字是什么

📅  最后修改于: 2022-03-11 14:52:20.158000             🧑  作者: 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.