Java数据类型 类型大小(字节)byte1short2int4long8float4double8char byte和String的互换 String str = "hello world"; byte[] strbyte = str.getBytes(); String str = new String(strbyte);