File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialization in java

 
Nikhilesh Reddy Chaduvula
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic