ok..i got it...if i call e.printStackTrace() , i get that exception with output
--- Update ---
A runtime exception because i have not serialized collar,though dog was serialized.
---...
Type: Posts; User: mayankpant
ok..i got it...if i call e.printStackTrace() , i get that exception with output
--- Update ---
A runtime exception because i have not serialized collar,though dog was serialized.
---...
i supposed to get an run time exception because my collar obect is not serialized, where as java says that u must get an runtime exception
import java.io.*;
class Dog implements Serializable
{
Collar col;
int dogSize;
Dog(Collar c,int s)
{