This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is a RuntimeException "Output"? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Is a RuntimeException "Output"?" Watch "Is a RuntimeException "Output"?" New topic
Author

Is a RuntimeException "Output"?

Steve Norris
Greenhorn

Joined: Feb 22, 2013
Posts: 4
Hi,

Is a RuntimeException considered to be output? If a main method throws an IllegalArgumentException, would it be correct to say that it ran without output or that IllegalArgumentException was included in the output? Also, do Errors work the same way?

Thanks!
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32635
    
215

It's not considered output. By output, the exam means printlns. There will be a separate answer choice about exceptions.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Steve Norris
Greenhorn

Joined: Feb 22, 2013
Posts: 4
Thanks for the answer. I wasn't sure since two explanations in the same practice exam treated them in opposite ways.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is a RuntimeException "Output"?
 
It's not a secret anymore!