本文介绍了java中的char范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下Java代码行产生错误。
即使java中的数据类型已签名?
The following line of Java code produce error.
Even though datatypes in java are signed?
char c = -128;
推荐答案
Char是未签名的一种数据类型在java中。它是一个16位无符号整数。
Char is the one data type that isn't signed in java. Its a 16 bit unsigned integer.
这篇关于java中的char范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!