+ 2
Please explain me more about static
Here i have an error, if i don't put static keyword. https://code.sololearn.com/cahdy18OsKo4/?ref=app
7 Answers
+ 1
Check Java tutorial 37.1
+ 1
Static before methods mean that the method doesn't belong to any object, but the class itself, which allows you to use the method with the class name.
https://www.sololearn.com/learn/Java/2159/
+ 1
https://www.sololearn.com/discuss/975023/?ref=app
https://www.sololearn.com/discuss/1778889/?ref=app
https://www.sololearn.com/discuss/139031/?ref=app
https://www.sololearn.com/discuss/2140758/?ref=app
https://www.sololearn.com/discuss/348963/?ref=app
https://www.sololearn.com/discuss/2396638/?ref=app
https://www.sololearn.com/discuss/188953/?ref=app
+ 1
Hope this helps you
+ 1
So in the above code you need to write static
+ 1
Rik Wittkopp the link is not clickable. Better you resend that link
+ 1
Atul
Thanks for letting me know