Java Programming/Keywords/default

From Wikibooks, open books for an open world
< Java Programming‎ | Keywords
Jump to: navigation, 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: