public class Elementary { public static void main(String[] args){ System.out.println(12345+5432l); } } 切记 在long类型字面常量中,一定要用大写的L,千万不要用小写的L。