The void keyword is used in the declaration of a method to indicate that the method returns no value.
Note that Java provides only this very limited use of the void keyword. Unlike in the C language, the void keyword cannot be used to declare the absence of method parameters, void pointers, and so on.