Computer Science, asked by maria9, 1 year ago

what is the difference static and non static methods

Answers

Answered by Dhruv00
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

maria9: thanx
maria9: can I please give some examples of static and non static methods
maria9: "can you" sorry
Dhruv00: yup. in java ?
maria9: yes
Dhruv00: now no comments here plz
Similar questions