11. public interface Status {
12. /* insert code here */ int MY_VALUE = 10;
13. }
Which three are valid on line 12? (Choose three.)
A. final
B. static
C. native
D. public
E. private
F. abstract
C. protected
答案:ABD
參考:7-6 介面
------------------------------------------------------------------
介面裡的屬性的修飾詞預設會加上public和final,
加了static不會影響
沒有留言:
張貼留言