This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bad question from MasterExam

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
aaa.JPG
The question
[Thumbnail for aaa.JPG]
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 808
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic