0
Please explain the use of static key word in java??
2 odpowiedzi
+ 2
Static keyword is useful when you want to declare certain variables before creating an instance of a class. So static variables belong to a class instead of a specific instance of a class. Same thing goes with static methods.
For more information: https://stackoverflow.com/questions/449445/java-static
+ 2
Method example:
https://code.sololearn.com/cYLsh8s9OWlY/?ref=app