What is the use of default? Is it a compulsory statement?
Answers
Answered by
0
The default case in switch on statement is not necessary ,but it useful when no case in switch is satisfied or noy matched then automatically it exiecutes the default statement ,if it is not there ,the switch statement is terminated.
Similar questions