class Test2{ public static void main(String[] args){ byte a=127; // 1バイト short b=123; // 2バイト int c=123456; // 4バイト long d=1234567890L; // 8バイト float e=0.123F; // 4バイト double f=0.123456789; // 8バイト char g='a'; // 2バイト文字 boolean h=true; // 真偽型 String s="文字列"; // 文字列 System.out.println(a+","+b+","+c+","+d+","+e+","+f+","+g+","+h+","+s); } } // 型がきっちりと決まっている // 文字列を扱える。厳密に言うと型ではなくオブジェクト。