我是靠谱客的博主 个性老鼠,这篇文章主要介绍【给自己一些时间】byte运算问题,现在分享给大家,希望可以做个参考。

能正确运行的: CD

A
public static void main(String args[]) {
byte a = 3;
byte b = 2;
b = a + b;
System.out.println(b);
}B
public static void main(String args[]) {
byte a = 127;
byte b = 126;
b = a + b;
System.out.println(b);
}C
public static void main(String args[]) {
byte a = 3;
byte b = 2;
a+=b;
System.out.println(b);
}D
public static void main(String args[]) {
byte a = 127;
byte b = 127;
a+=b;
System.out.println(b);
}

byte运算只能使用 += -= *= /=

最后

以上就是个性老鼠最近收集整理的关于【给自己一些时间】byte运算问题的全部内容,更多相关【给自己一些时间】byte运算问题内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(103)

评论列表共有 0 条评论

立即
投稿
返回
顶部