Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-829 Topic 9 Question 17 Discussion

Actual exam question for Oracle's 1Z0-829 exam
Question #: 17
Topic #: 9
[All 1Z0-829 Questions]

Given the code fragment:

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Tracey
1 days ago
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.
upvoted 0 times
...
Eliz
10 days ago
I'm going with option A. The output should be 'Cat Dog' because the first println() statement will print 'Cat' and the second one will print 'Dog'.
upvoted 0 times
...
Brande
22 days ago
I see your point, but I still think A) Cat Dog is correct because of the code logic.
upvoted 0 times
...
Jillian
28 days ago
I disagree, I believe the answer is B) A NullPointerException is thrown Cat Cat.
upvoted 0 times
...
Brande
29 days ago
I think the answer is A) Cat Dog.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77