Which of the following are written to the file when an object is serialized? You may need to select more than one answer.
the data contained in each instance variable
the data contained in each static variable
each method in the class
each constant that is final and static