• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

bad question from MasterExam

 
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for aaa.JPG]
The question
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic