Question: what is difference between static and non static method?
Answer: A static method belongs to the class, and you do not have to create an instance of the class to access the static method. ... A non-static method belongs to an object of the class, and you have to create an instance of the class to access the non-static method.