Really? A NullPointerException? That's so last year. I'm going with option C. The output will be 'Dog Dog' because the first println() statement will print 'Dog' and the second one will also print 'Dog'.
Haha, this is a tricky one! I'm leaning towards option D. The output will be 'Cat null' because the second println() statement will print 'null' since the variable 'dog' is not initialized.
Hmm, I'm not so sure. I think a NullPointerException might be thrown since the second println() statement tries to access a null reference. I'll go with option B.
Fernanda
1 months agoCarisa
4 days agoCorazon
18 days agoTijuana
1 months agoKasandra
2 months agoMeaghan
3 days agoMeaghan
4 days agoMeaghan
8 days agoTracey
2 months agoRoosevelt
16 days agoKeshia
1 months agoGarry
2 months agoEliz
2 months agoFranklyn
18 days agoTy
26 days agoMalissa
1 months agoTequila
1 months agoBrande
2 months agoJillian
3 months agoBrande
3 months ago