1. 程式人生 > >Integer和Double的區別

Integer和Double的區別

以下程式執行結果為:

public class Test {

	public static void main(String[] args) throws Exception {
		int a = 10;
		double b = 10.0;
		System.out.println(a == b);
		System.out.println(a == 10.0);
	}

}

答案:

true
true