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
0
When u use static u cant create an object
it indicates that the control will remain in the same function
it indicates that the control will remain in the same function
Answered by
1
It simply means that you can call a method without creating an object.
Similar questions
English,
8 months ago
Hindi,
8 months ago
Math,
8 months ago
Psychology,
1 year ago
Biology,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago