+ 1
What does the keyword static do in java can somone answer this question but the answer to be easy explanation
3 Antworten
+ 1
Static, means that thing belong to that class, not to an instance of it called Object.
If I have a static method or variable, i can call it directly from the class
Like Class.method();
You don’t need an object of that class to call that method.
+ 1
I posted an answer to this on the thread, might be helpful
https://www.sololearn.com/Discuss/987433/?ref=app