aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serialization" Watch "Serialization" New topic
Author

Serialization

Anupam anand
Greenhorn

Joined: Jun 28, 2010
Posts: 7
HI,
I am confused about this statement is it true?

It is legal to serialize an object of a type that has a super type that does NOT implement java.io.Serializable.
Please suggest me.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Yes its legal. A serializable class can be serialized even if its parent class is not serializable. This is from the javadocs of Serializable class
To allow subtypes of non-serializable classes to be serialized, the subtype may assume responsibility for saving and restoring the state of the supertype's public, protected, and (if accessible) package fields. The subtype may assume this responsibility only if the class it extends has an accessible no-arg constructor to initialize the class's state. It is an error to declare a class Serializable if this is not the case. The error will be detected at runtime.

Also serialization is not a part of SCJP exam now...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Anupam anand
Greenhorn

Joined: Jun 28, 2010
Posts: 7
Ankit Garg wrote:Yes its legal. A serializable class can be serialized even if its parent class is not serializable. This is from the javadocs of Serializable class
To allow subtypes of non-serializable classes to be serialized, the subtype may assume responsibility for saving and restoring the state of the supertype's public, protected, and (if accessible) package fields. The subtype may assume this responsibility only if the class it extends has an accessible no-arg constructor to initialize the class's state. It is an error to declare a class Serializable if this is not the case. The error will be detected at runtime.

Also serialization is not a part of SCJP exam now...


Thanks.
In which version SCJP exam Serialization is not there?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Serialization is not a part of SCJP 5 and 6 both...
Anupam anand
Greenhorn

Joined: Jun 28, 2010
Posts: 7
Ankit Garg wrote:Serialization is not a part of SCJP 5 and 6 both...


But ,I have syllabus of SCJP 5 in which Serialization topic is there.But not sure about SCJP 6 syllabus.
Are you sure?please ,inform me.

Thanks
Anupam
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Here are the official objectives of the exam from Oracle
Scjp 5, Scjp 6...
Rahul Nair
Ranch Hand

Joined: Dec 01, 2007
Posts: 138
Hi Ankit,

In K&B Book, Serialization is available there for SCJP Exam. Is there is any syllabus review from Oracle recently.
If this is the case, In which book should we get the updated content of syllabus.

Please suggest.

Thanks.
Anupam anand
Greenhorn

Joined: Jun 28, 2010
Posts: 7
Ankit Garg wrote:Here are the official objectives of the exam from Oracle
Scjp 5, Scjp 6...


Thanks,
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

Rahul Nair wrote:In K&B Book, Serialization is available there for SCJP Exam. Is there is any syllabus review from Oracle recently.
If this is the case, In which book should we get the updated content of syllabus.

Yes the objectives were updated some time back. I already gave the link to the objectives. No topic was added to the exams, only topics like serialization, wait and notify methods were removed...
Sahil Kapoor
Ranch Hand

Joined: Sep 12, 2009
Posts: 316
But to add......Some candidates are still getting questions on the removed topics...So be cautious !!!


SCJP 6.0 96%

(Connecting the Dots ....)
 
 
subject: Serialization
 
Similar Threads
Drivers
connection object
Ajax AutoComplete
instance withput reference
Scrabble... it only takes a minute...