this is my code .....
import java.io.*;
class TestSerializeCl ass implements Serializable
{
public TestSerializeCl ass()
{
System.out.prin tln("Debasis no argument constructor");
}
private void writeObject(Obj ectOutputStream out)
{
System.out.prin tln("Debasis write Object");
}
private void readObject(Obje ctInputStream in)
{
System.out.prin tln("Debasis read Object");
}
}
class TestSerialize
{
public static void main(String args[])
{
TestSerializeCl ass t = new TestSerializeCl ass();
}
}
when those above two private methods will be called and by whome ...
actually i don't understand why the serialization of an object is necessary ...
plz help me out ....
thanx in advance
import java.io.*;
class TestSerializeCl ass implements Serializable
{
public TestSerializeCl ass()
{
System.out.prin tln("Debasis no argument constructor");
}
private void writeObject(Obj ectOutputStream out)
{
System.out.prin tln("Debasis write Object");
}
private void readObject(Obje ctInputStream in)
{
System.out.prin tln("Debasis read Object");
}
}
class TestSerialize
{
public static void main(String args[])
{
TestSerializeCl ass t = new TestSerializeCl ass();
}
}
when those above two private methods will be called and by whome ...
actually i don't understand why the serialization of an object is necessary ...
plz help me out ....
thanx in advance
Comment