挑错题: ABCD注释标注的哪行代码有错误?public class Test1{public sttic void main(String args[ ]) {char c=65535; //Abyte b=127;//Bint height = 100; //Cfloat f=3.14;//D}}
查看答案
挑错题: ABCD注释标注的哪行代码有错误?public class Test2{public sttic void main(String args[ ]) {int x=8;byte b=127;b=x;//Ax='a';//Blong y=b; //Cfloat z = (int) 6.89; //D}}
A
B
C
D
挑错题: ABCD注释标注的哪行代码有错误?public class Test3{public sttic void main(String args[ ]) {char c='a';//Abyte b=128;//Bint height = 100;//Cfloat f=3.14F;//D}}
A
B
C
D
挑错题: ABCD注释标注的哪行代码有错误?public class Test4{public sttic void main(String args[ ]) {char c=30320;//Abyte b=127;//Bint public = 100;//Cfloat f=3.14F;//D}}
A
B
C
D
" byte amount = 128; " 是正确的byte型变量声明。
A. 对
B. 错