在Java中,switch语句的default分支的作用是什么?

答案解析

default分支在switch语句中用于当所有case分支都不匹配时执行的代码。
正确答案:B
随机推荐
开始刷题