posted 14 years ago
The code below has Student.java which is serializable, it also has Department's getter setter . Department.java is not serializable . But when i run the main method in EX01.java, i get Exception as Department.java is not serializable . So in Student.java i made the Department transient, now when i run the main method in Ex01.java, for Department is null while printing object Student . So i inserted writeObject and readObject method in student.java. But still i am getting Department null , please help
My Question is how to get the department values from Object Student.java when Student.java is serialized and Department.java is not serialized
The POJO below is of Student.java
the code below is Department.java
The code below is Ex01.java where main method