單項(xiàng)選擇題現(xiàn)有:class Test2 fpublic static void main (String [] args) {short a,b,C;a=1;b=2;C=a+b;a+=2;}}以上代碼中,哪一句是錯誤的?()

A.a=1;
B.C=a+b;
C.a+=2;
D.shorta,b,C;


您可能感興趣的試卷