Computer Science. The void keyword denotes that a method does not have a return type. However, even though a constructor method can never have a return type, it does not have the void keyword in its declaration. The method displayBookData() does not have a return type as shown by the use of the void keyword. Note that the constructor method Book(String, String, String) does not use the void keyword even though it too does not have a return type.