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 8 Question 96 Discussion

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

Given the following code for the classes MyException and Test:

What is the result?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Weldon
1 months ago
Okay, let me think this through. If the MyException constructor doesn't throw anything, then the answer should be C. Either A or B. Simple as that!
upvoted 0 times
Desire
16 days ago
User1: Then it would be a compile time error at line n1.
upvoted 0 times
...
Nan
19 days ago
User2: But what if the MyException constructor throws something?
upvoted 0 times
...
Lonny
21 days ago
User1: I think the answer is C. Either A or B.
upvoted 0 times
...
...
Glennis
1 months ago
Haha, I bet the answer is 'D. A B', just to mess with us. These exam questions are always trying to trick you, you know.
upvoted 0 times
Paulina
18 days ago
User 3: I agree with Paulina, it could be either A or B.
upvoted 0 times
...
Adolph
20 days ago
User 2: No way, I'm going with 'C) Either A or B'.
upvoted 0 times
...
Kathrine
26 days ago
User 1: I think the answer is 'A) A'.
upvoted 0 times
...
...
Kimbery
2 months ago
Woah, wait a minute! What if the MyException constructor throws an exception? Then we might get a compile-time error. I better double-check the code before answering.
upvoted 0 times
Johnna
9 days ago
User 3: Let's carefully review the code to make sure we don't miss anything.
upvoted 0 times
...
Cora
12 days ago
User 2: Yeah, that's a good point. We should double-check the code before answering.
upvoted 0 times
...
Kanisha
15 days ago
User 1: I think it will be a compile-time error if the MyException constructor throws an exception.
upvoted 0 times
...
...
Veta
2 months ago
Hmm, this looks like an interesting exception handling scenario. Let's see, the MyException class is extending RuntimeException, so it should be unchecked. The Test class is throwing a new instance of MyException, so I think the answer is either A or B.
upvoted 0 times
...
Felton
2 months ago
I'm not sure, but I think it might be E) A compile time error occurs at line n1
upvoted 0 times
...
Marcelle
2 months ago
I believe it's C) Either A or B
upvoted 0 times
...
Florinda
2 months ago
I think the answer is A
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