Use of default case in switch statement is to provide an option to do something if any of the case is not matched.
So in simple world its nothing but a else part of nested if, else if,
if (condition1) {
} else if (condition2) {
} else if (condition3) {
....
.... //so on
} else {
}
If non of the condition matched then it will falls into the else condition. Like wise in
switch(expression) {
case exp1:
//do something
break; /*optional */
case exp2:
//do something
break; /*optional */
...
...
case expN:
//do something
break; /*optional */
default:
/* If non of the above case satisfied then do this */
// What ever you want to do here, if the non of the case matches it is upto the programer
// what he wanted to do, like providing a info how to use OR anything else.
}