I have gone through java docs for Class there I have seen class implements Serializable click here, In the image as the class by default implements serializable why do we need to write extra line implements serializable for classes when we are dealing with situations like
import java.io.Serializable;
public class Student implements Serializable{
int id;
String name;
public Student(int id, String name) {
this.id = id;
this.name = name;
}
}
when we want to travel object's state on the network.