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-808 Topic 4 Question 109 Discussion

Actual exam question for Oracle's 1Z0-808 exam
Question #: 109
Topic #: 4
[All 1Z0-808 Questions]

Given the code fragment:

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Nana
18 hours ago
D is the way to go. Those void methods are really tripping up the compiler. Maybe the dev who wrote this code needs to brush up on their Java basics.
upvoted 0 times
...
Adelle
13 days ago
Haha, this question is a real head-scratcher! I'm going with C just to see what happens. 'Expect the unexpected', that's my motto!
upvoted 0 times
...
Sage
17 days ago
I think it's B. Line 9 has an error because you can't assign a value to a final variable.
upvoted 0 times
...
Minna
19 days ago
Can you explain why you think it prints 1?
upvoted 0 times
...
Shawnda
20 days ago
The correct answer is D. The code has a compile error at lines 12 and 15 because you cannot have a void method return a value.
upvoted 0 times
...
Hermila
21 days ago
I disagree, I believe the answer is C) It prints : 1
upvoted 0 times
...
Minna
23 days ago
I think the answer is A) It results in a compile time error at line 18.
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