DEVFYI - Developer Resource - FYI

What is default

J2SE Interview Questions and Answers


(Continued from previous question...)

51. What is default

A Java keyword optionally used after all case conditions in a switch statement. If all case conditions are not matched by the value of the switch variable, the default keyword will be executed.

(Continued on next question...)

Other Interview Questions