Question: what is the difference between static and non static methods?
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.