"public" is an access modifier that allows the method to be accessed from anywhere in the program. "void" is a keyword indicating that the method does not return any value.
Related terms
private: An access modifier that restricts the visibility of methods to only within their own class.
protected: An access modifier that allows methods to be accessed within their own class and subclasses.
return type: Specifies what type of data a method will return after performing its task.