+ 1

What does the keyword static do in java can somone answer this question but the answer to be easy explanation

9th Jan 2018, 9:35 PM
Davo
3 Réponses
9th Jan 2018, 9:36 PM
Jeremy
Jeremy - avatar
+ 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.
9th Jan 2018, 10:03 PM
Ahmed Salem
+ 1
I posted an answer to this on the thread, might be helpful https://www.sololearn.com/Discuss/987433/?ref=app
9th Jan 2018, 11:33 PM
Dan Walker
Dan Walker - avatar