what is the difference static and non static methods
Answers
Answered by
2
hey dear friend!!!!!!!
A static method can access static methods and variables as follows: A static method can call only other static methods, it cannot call a non-static method. Astatic method can be called directly from the class, without having to create an instance of the class.
hope it may help u dear!!!!
plz mark me at brainlist ^_^!!!!!
A static method can access static methods and variables as follows: A static method can call only other static methods, it cannot call a non-static method. Astatic method can be called directly from the class, without having to create an instance of the class.
hope it may help u dear!!!!
plz mark me at brainlist ^_^!!!!!
Vivek1408:
thanks
Similar questions