Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
2 months 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
Vivienne
9 days ago
Definitely seems like the developer needs to review their Java basics.
upvoted 0 times
...
Vivienne
23 days ago
Yeah, it looks like the compiler is having trouble with them.
upvoted 0 times
...
Vivienne
1 months ago
I agree, those void methods can be tricky.
upvoted 0 times
...
...
Adelle
2 months 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
Reed
1 months ago
User2: I'm going with D, let's find out.
upvoted 0 times
...
Kasandra
1 months ago
User1: I think it's C too, let's see if we're right.
upvoted 0 times
...
...
Sage
2 months 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
2 months ago
Can you explain why you think it prints 1?
upvoted 0 times
...
Shawnda
2 months 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
Halina
25 days ago
The correct answer is C) It prints : 1
upvoted 0 times
...
Junita
1 months ago
I'm pretty sure it's D) It results in a compile time error at lines at lines 12 and 15.
upvoted 0 times
...
Sherman
1 months ago
No, I believe it's B) It results in a compile time error at line 9.
upvoted 0 times
...
Berry
2 months ago
I think the answer is A) It results in a compile time error at line 18.
upvoted 0 times
...
...
Hermila
2 months ago
I disagree, I believe the answer is C) It prints : 1
upvoted 0 times
...
Minna
2 months 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