What is the behavior of static keyword Java in below program ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the behavior of static keyword Java in below program ?

https://code.sololearn.com/cHNt0qoLvES4/?ref=app

4th Apr 2018, 8:02 AM
Deepak Vishwakarma
Deepak Vishwakarma - avatar
2 Answers
+ 10
Hi, you could use this for your convenience (and mine because I don't have to paste the definition here) ^^ Just enter the keyword when input is prompted. https://code.sololearn.com/cmAC58iEl5y3/?ref=app
4th Apr 2018, 8:17 AM
Tashi N
Tashi N - avatar
+ 2
i don't use java all that much but i am pretty sure that like in other languages, static means that a method or variable can be accessed without an instance of its' class
4th Apr 2018, 8:16 AM
hinanawi
hinanawi - avatar