E. AA//#
Answer:B,D
Key:关于方法的覆盖,E虽然语法没问题但是方法的重载。
QUESTION NO: 109
Given:
>
,C&
#
#
"
$@9>
%1C&
*
+#
&'()
@!@
',&C&
#
"#
What is the result?
A.
B.
C. An exception is thrown at runtime.
D. Compilation fails because of an error in line 8.
E. Compilation fails because of an error in line 14.
Answer: D
Explanation: getNumber() in B cannot override getNumber() in A; attempting to use
incompatible return type: short to byte.
QUESTION NO: 110
Which two are benefits of fully encapsulating a class? (Choose two)
A. Performance of class methods is improved.
B. Implementation details of the class are hidden.
C. Access modifiers can be omitted on class data members.
D. Code that uses the encapsulation class can access data members directly.
E. Internal operation of the class can be modified without impacting clients of that class.
Answer:B,E
QUESTION NO: 111
Given:
>
>
',&-1/&.
#
#
"@9>
$@
%',&-1/&.