wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes bad question from MasterExam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "bad question from MasterExam" Watch "bad question from MasterExam" New topic
Author

bad question from MasterExam

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

The correct answer (due to K&B) is B.
When an object is serialized, if it has references to other objects, those objects must be serializable.

It is NOT true. If we use transient keyword those objects don't need to be serializable.



[Thumbnail for aaa.JPG]



SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

You see, your problem is that you know TOO MUCH!

Indeed, perhaps a reference to transient would make it a more accurate mock exam question. B is still the best answer there.

Here are a few more mock exam questions on serialization if you're interested in testing your skills:

Some SCJP Mock Exam Questions on Serialization and java.io

Good luck on the Sun Certification exam!

-Cameron McKenzie
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 804
    
    1

Thanks, I will do your tests.

But what do you think about the question from MasterExam.
Is it good?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

I think it's a decent question; it's not perfect, and your original point is correct, as it clarifies the answer. It could be worded better, but making exam questions can be tough. Remember, somebody had to sit down and come up with 100 - 200 questions. As you could imagine, there's a point where quality suffers. It's understandable. The actual exam from Sun will be more refined.

I think you've nailed it. It's time to move on to more challenging questions and other concepts you might be less familiar with! I don't think this question is 'good enough' for you to get overly concerned with.

Best of luck on you Java Cert!

-Cameron McKenzie
 
 
subject: bad question from MasterExam
 
Similar Threads
Array serialization Question
Disadvantages of using serialization?
Serialization
legal RMI-IIOP types?
How do I write contents of a vector to file?