第六十六題: |
Given: 5. class Thingy{ Meter m = new Meter(); } |
Which two are true? (Choose two.) A. The output is mm. |
答案:AF |
題目範圍:物件觀念 |
解析: 不論是Thingy物件還是DeluxeThingy物件,都使用Meter中的方法 |
第六十七題: |
Given: 10. abstract
public
class Employee { |
Which two methods, inserted independently at line 17, correctly complete the Sales class? (Choose two.) A. double getSalesAmount() { return 1230.45; } |
答案:BD |
題目範圍:物件觀念,抽象類別 |
解析: 抽象類別中需要被實作的方法,可見度等級只可以提升或相同,不可以降低 |
第六十八題: |
Given the following six method names: addListener |
How many of these method names follow JavaBean Listener naming rules? A. 1 |
答案:B |
題目範圍:命名規則 |
解析: Listener可以被加在某物件上,因此會有addXXXListener 因此正確的是addMouseListener和removeMouseListener |
第六十九題: |
Given: 11. public
interface Status { |
Which three are valid on line 12? (Choose three.) A. final |
答案:ABD |
題目範圍:介面interface |
解析: 介面內變數的修飾,只允許final、static和public |
七十題圖片太多跳過…
留言列表