Computer Science, asked by ShreyaChouksey558, 1 year ago

What is the function of static keyword in Java


Harjotgill: Whether you are asking when we write static before a method or a variable( class variable)

Answers

Answered by DevT
0
When u use static u cant create an object
it indicates that the control will remain in the same function
Answered by Harjotgill
1
It simply means that you can call a method without creating an object.
Similar questions