+ 1
void is just a placeholder type. It does not return any value not even null. In java all method signatures require a return type. void is a placeholder type used to tell the compiler not to expect the return keyword or a return value from the method. Although you may still use the return keyword without a value (not even null) to return early from the method.
10th Jun 2017, 6:46 PM
ChaoticDawg
ChaoticDawg - avatar