This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
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.
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: 32833
4
posted
0
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: 32833
4
posted
0
Since the other thread has an answer, I shall close this thread.