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 106 Discussion

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

Given the code fragment:

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Beata
1 months ago
I'm pretty sure the answer is A. All those errors at the end are just a distraction - the real problem is at line 18, where the 'System.out.println' statement is missing a semicolon.
upvoted 0 times
Melodie
9 days ago
So the answer is A) It results in a compile time error at line 18.
upvoted 0 times
...
Aracelis
10 days ago
No, those errors are just there to confuse you. The missing semicolon at line 18 is what causes the compile time error.
upvoted 0 times
...
Lang
16 days ago
But what about the errors at lines 12 and 15? Don't they also cause a problem?
upvoted 0 times
...
Verlene
16 days ago
I think you're right, the missing semicolon at line 18 is the main issue.
upvoted 0 times
...
...
Raina
1 months ago
Haha, this question is a real head-scratcher! I'm going to go with C and hope for the best. Who knows, maybe the compiler will just ignore all those errors and print '1' anyway!
upvoted 0 times
Ethan
7 days ago
User1: Well, let's find out soon enough!
upvoted 0 times
...
Daniel
15 days ago
User2: I'm not so sure, I think it might be a compile time error at line 9.
upvoted 0 times
...
Johnathon
1 months ago
User1: I think it's C too. Let's see if we're right!
upvoted 0 times
...
...
Kasandra
2 months ago
I think the answer is D. There are compile-time errors at lines 12 and 15, where the 'arr' variable is used in an array index that is out of bounds.
upvoted 0 times
Sharika
9 days ago
User3: I agree with User2, it's a compile time error at line 18.
upvoted 0 times
...
Katie
11 days ago
User2: No, it actually results in a compile time error at line 18.
upvoted 0 times
...
Elsa
1 months ago
User1: I think the answer is D.
upvoted 0 times
...
...
Monroe
2 months ago
The correct answer is B. The code fragment has a compile-time error at line 9, where the variable 'arr' is used before it is declared.
upvoted 0 times
Rodolfo
2 days ago
That's why it results in a compile time error at line 9.
upvoted 0 times
...
Loreen
7 days ago
So, the variable 'arr' is being used before it is declared.
upvoted 0 times
...
Gregoria
10 days ago
I agree, the code has a compile-time error at line 9.
upvoted 0 times
...
Elza
17 days ago
I think the correct answer is B.
upvoted 0 times
...
...
Samuel
2 months ago
But why do you think that? Can you explain your rationale?
upvoted 0 times
...
Audry
2 months ago
I disagree, I believe the correct answer is C) It prints : 1
upvoted 0 times
...
Samuel
3 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