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-900 Topic 1 Question 88 Discussion

Actual exam question for Oracle's 1Z0-900 exam
Question #: 88
Topic #: 1
[All 1Z0-900 Questions]

Which code snippet prints the exception error message as part of the page output?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Izetta
23 days ago
I'm going with B. Printing the exception message directly to the page output seems like the most straightforward way to handle this.
upvoted 0 times
...
Francesco
26 days ago
Haha, option D is the classic 'print to the console' approach. Not very useful for a web page, though!
upvoted 0 times
...
Bernardine
28 days ago
Hmm, I'm not sure. I was thinking option A might work, but I'm not familiar with the <%= syntax. I'll have to look that up.
upvoted 0 times
Millie
2 days ago
I don't think option C or D will work. They seem to be using incorrect syntax for printing the exception message.
upvoted 0 times
...
Carmelina
4 days ago
I'm not sure about that. Option B might also work, using the c:out tag to display the exception message.
upvoted 0 times
...
Bok
17 days ago
I think option A is correct. It uses the <%= syntax to print the exception message.
upvoted 0 times
...
...
Tammy
2 months ago
I think option B is the correct answer. It uses the JSTL tag to display the exception message.
upvoted 0 times
Marg
2 days ago
I think option A might also work, using <%= exception.message %>.
upvoted 0 times
...
Marlon
8 days ago
I agree, option B is the correct answer.
upvoted 0 times
...
...
Crista
2 months ago
But A) <%= exception.message %> directly prints the exception message as part of the page output, so I think that's the right choice.
upvoted 0 times
...
Evelynn
2 months ago
I disagree, I believe the correct answer is D) <% System.out.println(e.getMessage()) %>
upvoted 0 times
...
Crista
2 months ago
I think the answer is A) <%= exception.message %>
upvoted 0 times
...

Save Cancel