Question: what is the difference between public and static in java?
Answer: public means that the method is visible and can be called from other objects of other types. ... static means that the method is associated with the class, not a specific instance (object) of that class. This means that you can call a static method without creating an object of the class.