whats the purposr of using serialization?
Answers were Sorted based on User's Feedback
Answer / vinayak
in Java if you want to store java object for life time you
need to serialize it by implementing it class be serialiazable
interface.
So that you can access lifetime it it is stored somewhere.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / paletipatisrinu
serialization is the process of save ing the state of the
object in to file or secondary storage device.The main
purpose serialization we can send the data one layer to
another layer.its converts java notation object to network
notation object.if we are working with serialization ur
class must implemented serializible interface
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / niltarlekar
object can pass in network from one place to other
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / rameshreddy.k
by using serialization we can pass some amout of data from
network to another network or one layer to another layer ..
and also we want use object with running JVM by use
serialization consept we can use it
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / ajay yadav
To store the current object to the persistent storage
location.
| Is This Answer Correct ? | 0 Yes | 1 No |
Can we have multiple catch block for a try block?
Can we convert stringbuffer to string?
Why do we need hashset in java?
What is byte code and why is it important to java’s use for internet programming?
Can final class have constructor?
Explain the importance of finally block in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
Can a class be a super class and a sub-class at the same time? Give example.
What is the USE of Null interfaces ??...if thers nothing inside these interfaces how are they used and WHy are they used ???? No 1 has given a proper description yet
public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?
Difference between collection, collection and collections in java?
Functionality of JVM?