The void
type is a special type: it indicates the absence of a
value. Its most profound use is in typing the return value from
methods; another use is as an expression where an expression is not
needed but also not allowed. void
is the only one void-typed
value; no operations can be performed on void
; and there is no
default value for the void
type.
Go to the first, previous, next, last section, table of contents.