A. 3.3 B. 3.33 C. 3 D. 3.0
類Teacher: class Teacher{ String name; float salary; Teacher(String name){ this.name = name; } Teacher(String name,float salary){ this.name = name; this.salary = salary; } } 執(zhí)行語句Teacher t = new Teacher(“Tom”,2000.0f);后,字段salary的值是哪一項(xiàng)?()
A. 2000.0f B. 0.0f C. null; D. 2000
現(xiàn)有: 1. interface Altitude { 2. //insert code here 3. } 和4個(gè)聲明: int HIGH = 7; public int HIGH = 7; abstract int HIGH = 7; interface int HIGH = 7; 分別插入到第2行,有多少行可以編譯?()
A. 0 B. 1 C. 2 D. 3 E. 4