String是final修饰的java类,java中的基本类型一共有8个,它们分别为: 字符类型:byte,char 基本整型:short,int,long 浮点型:float,double 布尔类型:boolean