long 报错




long examtime=DateUtil.getDateline();
1313494083
long examtime=DateUtil.getDateline()*1000L;
1313494083000

后面加个“L”,不加L就默认为int型的
int -2147483648~2147483647
long -9223372036854775808~9223372036854775807 

byte,short, int ,long,  double 
8,   16,   32,   64,    64

你可能感兴趣的:(long)