wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes serialization example of kathy siera book(page no-471) 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 "serialization example of kathy siera book(page no-471)" Watch "serialization example of kathy siera book(page no-471)" New topic
Author

serialization example of kathy siera book(page no-471)

Arjun Srivastava
Ranch Hand

Joined: Jun 23, 2010
Posts: 432



output :
before serializationfredy 541
after serializationfredy 44

ok fine code works well til now.


Q: now if at line 31 if we pass string"att" instead of "ser"
FileInputStream fs=new FileInputStream("att");
then

output :
before serializationfredy 541
after serializationfredy 541

w is being serialized in my opinion as it returns same value.
WHY is this happening??


SCJP 6 | FB : Java Certifications-Help. | India Against Corruption
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8805
    
    5
Even though I personally think Serialization is really cool, Sun decided to remove it from the SCJP exam. So, if you're focused on studying for the exam, you can leave this topic alone.

hth,

Bert


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Arjun Srivastava
Ranch Hand

Joined: Jun 23, 2010
Posts: 432

Bert Bates wrote:Even though I personally think Serialization is really cool, Sun decided to remove it from the SCJP exam. So, if you're focused on studying for the exam, you can leave this topic alone.

hth,

Bert


thanks sir for the kind information.

i didn't knew that serialization has been removed as it was given in the BOOK(kathy siera and bert bates).

someone told me earlier that wait and notify also has been removed, is it like that?

please do tell us the other topics that has been recently removed from SCJP 1.6(310-065) but still given in book,
it will remove lots of load from SCJP1.6 aspirant students who are referring BOOK(kathy siera and bert bates)??

thanks once again!!
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8805
    
    5
Hmmm...

This might not be the complete list, but for sure these topics have been removed:

- wait and notify
- serialization
- System.gc()

Be careful with this last one! System.gc() is gone but garbage collection and finalize() are still in the exam and tricky!

The objectives for section 1 have been consolidated a bit, but I think all the old bases in section 1 are still covered.

Bitwise operators are gone, but they might have been gone as of SCJP 5.

Anyone know of others?
Mark Moge
Ranch Hand

Joined: Mar 14, 2009
Posts: 96

Bert Bates wrote:
- wait and notify


But you have to know that these methods belong to the Object class and are no static.


SCJP6 | http://programmerutilities.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: serialization example of kathy siera book(page no-471)
 
Similar Threads
runtime exception
serialization problem
Serialization question - Superclass is not marked Serializable but the sublass is...
Serialization
serialiazation- run time exceptions