class Test04Base01 { public static void main(String[] args) { //���� //byte byte b = 127; //short short s = 30000; //int int i = 1234567891; //long long l = 12345678910L; //??? long���ͼ�L ����int���� //С�� ������ float f1 = 1.0001F; double d1 = 1.00012; //��ֵ f1 = 1.000000000000000001F; System.out.println(f1); //��ҵ���� System.out.println(0.1 + 0.2);// 0.3 //������ ��ȡ IEEE 754��������λ С��λ ָ��λ //����2�� float ff1 = 123123123F; float ff2 = ff1 + 1; System.out.println(ff1); System.out.println(ff2); System.out.println(ff1 == ff2); //== �Ƚ� true //char //�ص㣺������ һ���ַ� ������ʽ �ַ� Unicodeֵ ת���ַ� //��������ֵ ȡֵ ��shortһ�� char c1 = 'a'; System.out.println(c1); char c2 = '\u0023'; System.out.println(c2); char c3 = '\t'; System.out.println(c3); //����ֵ int c4 = c1; System.out.println(c4); //boolean boolean b1 = false; //�����ж� if(b1){ System.out.println("true"); }else{ System.out.println("false"); } // ( b1 = true ) ��ֵ // ( b1 == true ) û������ } }