jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serialization in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serialization in java" Watch "Serialization in java" New topic
Author

Serialization in java

Nikhilesh Reddy Chaduvula
Greenhorn

Joined: Mar 21, 2013
Posts: 6


Can anybody explain me why this is going to work. What I mean is Serializable is applicable here
but Serializable is not applicable here



The reason I am assuming is that all the array of objects are initialized to null and hence serialization applies here.
and if we change the above program as



It is serializable.I am having hard time in understanding these things.
I have followed this forum
http://javapapers.com/core-java/object-construction-in-serialization/

Can any one correct/rectify me if my understanding is wrong.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Hi Nikhilesh,

If you slightly modify your code it would confirm if you are right or wrong. Change the line

To

Also please remember Serialization is not a part of SCJP exam objectives anymore...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization in java
 
Similar Threads
failed to lazily initialize a collection of role
Doubt on Serialization
output!
[ modelling a sport's statistics ] Comments ?
Serialization, can someone elaborate?