<分区>
我在网上偶然发现了这段代码
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
int i = (byte) + (char) - (int) + (long) - 1;
System.out.println(i);
}
}
它打印1
。
我能知道为什么吗?
这是来源 --> http://www.javacodegeeks.com/2011/10/weird-funny-java.html