第一种:包装类型:Byte,Integer,Short,Long,Boolean,Character,Float,Double等8种

Long.valueOf("String")返回Long包装类型

第二种:基本数据类型:byte,int,short,long,boolean,char,float,double等8种

Long.parseLong("String")返回long基本数据类型

 

相关文章: