Serialization vs String format
<p>Can any one suggest which way is better?
Storing the object in serialized form or read the filecontent as String and construct the object.</p>

<p>Simply,<br>
1.I have a string (str,str1,str2,str3,....) like this in my filestore.
Read this file string and construct java object (ex creating the Linkedlist obj based on the comma separated).</p>

<p>2.Retrieve the Linkedlist obj from the file store using the serialization.</p>

<p>Reading the serialized object from filestore or construct the obj from string.
Which one is the best way?</p>

<p>i am taking the linkedlist here is just for sample.
It may be differ, from the string i have to construct some JSONObject,JsonArray formats...
JSON is not serialized obj, i will do it some other way to make as serializable.</p>

<p>For a lengthy string which one is best, serialize or construct the obj from string?</p>

<p>All thing are related to Java</p>

<p>Please advice me</p>

<p>Regards<br>
S.Chinna</p>
