I am stumped by a question in Osman Mrzljak's
SCJP Java 5 Mock Exam (
http://home.wanadoo.nl/mrzljak/en/biz/exam.html). It is question 8:
a: Compile and output CiaoHallo
b: Compile and output CiaoOla
c: Compile and output HalloHallo
d: Compile and output HalloOla
e: This will not compile, becouse of ambiguous method reference to doSomething...
I expected the answer to be b, but the correct answer is d. I've compiled and run the code to verify, but I don't understand. Why doesn't the doSomething method in Raptor override the varargs doSomething method in Bird?
Thanks for any insight!