411 REFERENCE · Wikibooks
Java Programming/Keywords/void
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
is a Java keyword.
Used at method declaration and definition to specify that the method does not return any type, the method returns . It is not a type and there is no void references/pointers as in C/C++.
For example:
public void method()
{
//...
return; // -- In this case the return is optional
//and not necessary to use public but some changes will be there
}
See also:
Java Programming/Keywords/return
deep