Tag: void keyword
-
Void keyword and void method
void keyword: Void keyword is used with the method declaration to specify that this particular method is not going to return any value after completing its execution. We can’t assign the return type of a void method to any variable because void is not a data type. void method: Look at the following program that demonstrate how a method is…