When we want to store something in a file...we basically use Serialization and the steps we write for that are :
1. FileOutputStream fs = new FileOutputStream("abc.txt"); //connect to the file.
2. ObjectOutputStream os = new ObjectOutputStream(fs);
3. os.writeObject(object1)
Can anyone explain the 2nd point...i mean what does it actually do....
1. FileOutputStream fs = new FileOutputStream("abc.txt"); //connect to the file.
2. ObjectOutputStream os = new ObjectOutputStream(fs);
3. os.writeObject(object1)
Can anyone explain the 2nd point...i mean what does it actually do....