+ 3
Static
what is the difference between static and non-static variable? in java
4 odpowiedzi
+ 20
//hope it helps ☺
https://code.sololearn.com/cvfs7727ltDG/?ref=app
+ 3
static variables can be accessed by static methods and non static variables can be called by non static methods.
+ 2
Static variables are initialize first and can be accessed by only other static methods and non static method are just vice versa
0
static is under the class. So it is use full to run code without class