what is the difference static and non static methods
Answers
Answered by
4
In Java
If a function is declared as static that is it is a static method we don't need to create its object in order to call it
While if a function is declared as non static we have to create its object in order to call it. hope you like this answer please do mark as brainliest
If a function is declared as static that is it is a static method we don't need to create its object in order to call it
While if a function is declared as non static we have to create its object in order to call it. hope you like this answer please do mark as brainliest
maria9:
thanx
Similar questions