Answers for "java when to use staticf keyword"

5

what is static keyword in java

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.
Posted by: Guest on December-05-2020

Code answers related to "java when to use staticf keyword"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language