Haha, this is a classic Java trick question. I'm going with C. The output will just be 'Dog' twice, because that's what the printAnimal() method is hard-coded to return.
No way, the answer has to be D. The first call to printAnimal() will return 'Cat', but the second call will return 'null' because the animal reference is null.
Aleshia
9 days agoIsaac
11 days agoHerminia
16 days agoUna
17 days agoVicky
22 days agoUna
29 days ago