{"id":41,"title":"java\u6570\u636e\u7c7b\u578b\u8f6c\u6362","good":0,"bad":0,"hit":2226,"created_at":"2014-04-17 14:41:14","content":"
\/*-----------------------------------------------------------------------------------*\/
\/*\u7c7b\u578b\u8f6c\u6362*\/
\/*
byte b=3;
b=(byte)(b+400);\/\/\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362,\u503c\u8fc7\u5927\u65f6\u4f1a\u53d1\u751f\u4e22\u5931,\u6b64\u65f6\u8fd0\u7b97\u7ed3\u679c\u4e3a-109\u800c\u4e0d\u662f403
System.out.println(b);
System.out.println('a'+1);\/\/\u7ed3\u679c:98
System.out.println((char)('a'+1));\/\/\u7ed3\u679c:b \u6ce8\u610fchar\u8981\u7528()
*\/
\/*-----------------------------------------------------------------------------------*\/
\/*\u5b57\u7b26\u7f16\u7801\u5e93\u5bb9\u91cf
unicode\u5168\u4e16\u754c\u6587\u5b57
ascii\u7801\u8868\u6ca1\u6709\u4e2d\u6587
\u5e95\u5c42\u901a\u8fc7unicode\u8868\u6765\u5b9e\u73b0
\u4e2d\u6587\u8868:gb18030>gbk>gb2312
System.out.println('\u4f60'+0);
System.out.println('\u597d'+0);
System.out.println('\u597d'-'\u4f60');
*\/
\/*-----------------------------------------------------------------------------------*\/
\/*\u7c7b\u578b\u8f6c\u6362\u7ec6\u8282
byte b=4;
b=3+7;\/\/\u6b64\u5904\u503c\u662f\u786e\u5b9a\u7684,\u4e0d\u4f1a\u62a5\u9519
System.out.println(b);\/\/10
byte b1=3;
byte b2=7;
\/\/b=b1+b2;\/\/\u62a5\u9519,\u56e0\u4e3ab1\u548cb2\u662f\u53d8\u91cf,\u8303\u56f4\u4e0d\u786e\u5b9a,\u53ef\u80fd\u8d85\u51fabyte b\u7684\u8303\u56f4
int x;
int x1=Integer.MAX_VALUE;\/\/int\u7684\u6700\u5927\u503c2147483647,\u6ce8\u610f\u5927\u5c0f\u5199
int x2=2;
x=x1+x2;
System.out.println(x);\/\/-2147483647 int\u662f\u9ed8\u8ba4\u7c7b\u578b,\u8d85\u51fa\u5219\u5f3a\u5236\u8f6c\u6362\u4e3a\u8d1f\u6570,\u4e0d\u62a5\u9519
*\/<\/p>"}