• 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

Serialization Question

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am getting a write error for the code included below. Can you please help me find the reason for this error.

Here's the error that i am getting.

Thanks for your help.

Sachin Deokar
 
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Remove (comment) lines 30 and 40.
You cannot close streams inside writeObject / readObject methods.
 
Sachin Deokar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You.
 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sachin Deokar wrote:Thank You.



Also be aware, the new SCJP exam objectives no longer include serialization questions
 
Sachin Deokar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephen Davies wrote:
Also be aware, the new SCJP exam objectives no longer include serialization questions



Is this something that was changed recently, coz I can see it being included in the objective. SCJP 1.6 Objectives. I am following what's included in the Kathy Sierra SCJP 1.6 book.

Given a scenario involving navigating file systems, reading from files, writing to files, or interacting with the user, develop the correct solution using the following classes (sometimes in combination), from java.io: BufferedReader, BufferedWriter, File, FileReader, FileWriter, PrintWriter, and Console.



Thanks,
Sachin
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error says, paths for which ever files the objects are serialized into are incorrect.
Files will automatically be created, but the paths where files would be created should be correct.
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stephen is correct!

After the book was published, Sun / Oracle removed the Serialization topic from the exam.

What we have discovered however is that not all prometric centers update the exams at exactly the same time. So there is a remote chance that a few prometric centers *might* still be using an older version of the exam. I don't know how to verify that ahead of time? Perhaps you can call your local prometric center and ask which set of objectives they're using? Perhaps that would work?

For sure, if you go to the Oracle website you can see the current set of objectives. Not only has Serialization been removed since K&B was published, but the 4th Thread objective, the one conerning wait and notify, has also been removed.

hth,

Bert
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bert Bates wrote:Stephen is correct!

After the book was published, Sun / Oracle removed the Serialization topic from the exam.

What we have discovered however is that not all prometric centers update the exams at exactly the same time. So there is a remote chance that a few prometric centers *might* still be using an older version of the exam. I don't know how to verify that ahead of time? Perhaps you can call your local prometric center and ask which set of objectives they're using? Perhaps that would work?

For sure, if you go to the Oracle website you can see the current set of objectives. Not only has Serialization been removed since K&B was published, but the 4th Thread objective, the one conerning wait and notify, has also been removed.

hth,

Bert



Hi,

I am looking for links in Oracle Website for the set of objectives.

Can we still use the K and B book which was written for 010-065 for the new update exam 010-066??

Thank you very much.
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to CodeRanch, Bharadwaja Cheruvu

Swerrgy Smith wrote:Can we still use the K and B book which was written for 010-065 for the new update exam 010-066??


If no other new objectives are added (even some are removed), yes you can still use it and you'll learn more which would not be a waste



 
Bert Bates
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since K&B was published two objectives have been removed from the exam:

- serialization

- the last thread-related objective that had to do with wait() and notify() and notifyAll()

Skip those and the book is current.

hth,

Bert
 
reply
    Bookmark Topic Watch Topic
  • New Topic