Java Programming/Keywords/default

From Wikibooks, open books for an open world
Jump to navigation Jump to search

default is a Java keyword.

This is an optional part of the switch statement, which only executes if none of the above cases are matched.

See also: