赞
踩
java中当发生数据截断时候,采取的措施就是:保留低位,舍弃高位
short s = (short)0b11000000000000000000000000000001;System.out.print(s);
运行结果是1