what is the difference between public static and void in java?
public is an access specifier defining that it can be accessed by any of the classes be it in the same project same/other class, or other project classes. static means that the method is associated with the class, not a specific instance (object) of that class. ... void means that the method has no return value.