does we need static in every method created in static main method? Because in this task println method without static will not work.
I have a doubt if anyone can clear it, I'd be thankful.🥺
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Misiu
9 August 2020, 21:45useful
If a method should be called, and there is no object to call it, then the method should be static.
A method thay is not static must be called by using object (object's reference).
+4