- 博客(1)
- 收藏
- 关注
原创 jdk1.7新特性
1.二进制字面量JDK7开始,终于可以用二进制来表示整数(byte,short,int和long)。使用二进制字面量的好处是,可以是代码更容易被理解。语法非常简单,只要在二进制数值前面加 0b或者0B 如: byte nByte = (byte) 0b1; short nShort = (short) 0B10; int nInt = 0b11;
2017-12-06 10:09:00 122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人