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 14 Question 98 Discussion

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

Given the code fragment:

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Jerry
30 days ago
I bet the real answer is that it causes a stack overflow error and the JVM just gives up and goes home. That's what I'd do if I had to deal with this mess of code.
upvoted 0 times
...
Denae
1 months ago
Hold up, I think it's a compile-time error at lines 12 and 15. Didn't you see that the `super()` call is missing in the constructors? Rookie mistake.
upvoted 0 times
Emily
5 days ago
Thanks for pointing that out, I'll make sure to remember that for next time.
upvoted 0 times
...
Denny
6 days ago
So, the correct answer would be D) It results in a compile time error at lines 12 and 15.
upvoted 0 times
...
Leota
14 days ago
Yeah, that's a common mistake. Always remember to include the `super()` call when extending a class.
upvoted 0 times
...
Arminda
19 days ago
I think you're right, the missing `super()` call in the constructors will result in a compile-time error.
upvoted 0 times
...
...
Helga
2 months ago
Come on, guys, it's obviously going to print '1'. The `System.out.println(i)` statement will execute, and `i` is initialized to 1, so what else could it be?
upvoted 0 times
Tamekia
6 days ago
Yeah, it's pretty straightforward, the output will be 1.
upvoted 0 times
...
Louvenia
25 days ago
I agree, the value of i is 1 so it will print 1.
upvoted 0 times
...
Stefania
1 months ago
I think it will print '1' as well.
upvoted 0 times
...
...
Noemi
2 months ago
Nah, it's gotta be a compile-time error at line 9. You can't have a non-static method inside a static block, that's just basic Java syntax.
upvoted 0 times
Lenna
21 days ago
So, the correct answer is B) It results in a compile time error at line 9.
upvoted 0 times
...
Ashton
1 months ago
Yeah, having a non-static method inside a static block is definitely a syntax error.
upvoted 0 times
...
Andra
1 months ago
I think you're right, it should be a compile-time error at line 9.
upvoted 0 times
...
...
Evan
2 months ago
I'm pretty sure it's a compile-time error at line 18. The `super()` call needs to be the first statement in the constructor.
upvoted 0 times
Beata
16 days ago
Yeah, I agree. The `super()` call needs to be the first statement in the constructor.
upvoted 0 times
...
Jin
18 days ago
No, I don't think so. It's definitely a compile-time error at line 18.
upvoted 0 times
...
Aaron
26 days ago
But what about the other options? Maybe it's a compile-time error at line 9.
upvoted 0 times
...
Kerrie
2 months ago
I think you're right, it should be a compile-time error at line 18.
upvoted 0 times
...
...
Huey
2 months ago
I see your point, but I think C) is correct because the code will print 1.
upvoted 0 times
...
Rossana
2 months ago
I disagree, I believe the answer is A) It results in a compile time error at line 18.
upvoted 0 times
...
Huey
2 months ago
I think the answer is C) It prints : 1
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