aspose file tools*
The moose likes Bunkhouse Porch and the fly likes nit w/ chap.6 q.13 S&B Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Books » Bunkhouse Porch
Reply locked New topic
Author

nit w/ chap.6 q.13 S&B

Steven Elliott
Greenhorn

Joined: Mar 28, 2002
Posts: 14
Sierra & Bates SCJP 6 chap. 6, question 13 is:

One of the correct answers is:
G. The invocation of parse() must be placed within a try/catch block

My nit is you can declare to throw an Exception in the main method so "...must be placed within a try/catch block." is not true because it is not the only option.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38818
    
  23
What are the other ”correct‟ answers?
Steven Elliott
Greenhorn

Joined: Mar 28, 2002
Posts: 14
The other two are:

B. The output is 987.12346 987.12345
F. The code compiles and runs without exception

I mistakenly posted this here and have reposted to the Programmer Certification (SCJP/OCPJP) forum where I had originally intended. The entire question and answers are posted there.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38818
    
  23
Steven Elliott wrote: . . . have reposted to the Programmer Certification (SCJP/OCPJP) . . .
You ought not do that, for reasons explained here; you ought to have asked me to move the question.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38818
    
  23
Since the other thread has an answer, I shall close this thread.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: nit w/ chap.6 q.13 S&B