wood burning stoves 2.0
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Master Exam doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Master Exam doubt" Watch "Master Exam doubt" New topic

Master Exam doubt

Maciej Zpolski

Joined: Nov 02, 2006
Posts: 11
There is a question about threads, code compiles, output is simple. But the question is:

Witch results are NOT possible? (choose all that apply)
One of the correct answer is:
An error ocurs at runtime.

What about JVM errors? They can occurs(i.e. OutOfMemory Error), so i think, that this one isn't correct. How do I know, what answers author wants?

Sorry for my english..
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3635
In general, you should only think about the normal scenerio. Such questions usually consider runtime exceptions that occur due to bad programming such as ClassCastException, NullPointerException, IllegalMonitorStateException (when you try to call wait() or notify() without holding the lock), ArrayIndexOutOfBoundsException.
Most of these are already mentioned in the exam objectives.


Enthuware - Best Mock Exams and Questions for Oracle Java Certifications
Quality Guaranteed - Pass or Full Refund!
Maciej Zpolski

Joined: Nov 02, 2006
Posts: 11
Thanks for answer.
Sometimes i'm think to much
I agree. Here's the link: http://aspose.com/file-tools
subject: Master Exam doubt
jQuery in Action, 3rd edition