System.out.println('b'+'c');会打印出什么结果?

该语句会打印出什么结果?
System.out.println('b'+'c');

char类型的变量运算,不管是char值之间还是与其他类型,都会先自动转为int类型

输出的是数字:197

猜你喜欢

转载自blog.csdn.net/weixin_39345384/article/details/79999202