给定 java 代码片段,如下: int i=0 , j=-1; switch(i){ case 0: case 1:j=1; case 2:j=2; } System.out.print("j="+j); 编译运行,正确的是:
A.
程序编译出错
B.
j=1
C.
j=2
D.
j=0
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】rections: For this part, you are allowed thirty minutes to write an E-mail to one of your former classmates. You should write at least 80 words, and base your E-mail on the Chinese outline below: 1. 了...
【简答题】For this part, you are allowed 30 minutes to write A Letter to a Roommate. Suppose one of your roommates is getting addicted to smoking. You are going to write a letter, trying to persuade him to quit...
【简答题】Directions: For this part, you are allowed thirty minutes to write an E-mail to one of your former classmates. You should write at least 80 words, and base your E-mail on the Chinese outline below: 1....
【简答题】For this part,you are allowed 30 minutes to write a letter to express your thanks to one of your friends who helped you most when you were in difficulty.You should write at least 120 words but no more...
【简答题】Directions: For this part, you are allowed thirty minutes to write a letter to one of your friend.You should write at least 80 words, and base your letter on the Chinese outline below: 你的一位外国朋友给你来信,打算...