- Java code
public class Welcome{ public static void main(String[] args) { long sign=0x0000000080000000; System.out.println(sign); }}
应该输出什么?
------解决方案--------------------
整形字面默认值是int类型
public class Welcome{ public static void main(String[] args) { long sign=0x0000000080000000; System.out.println(sign); }}