Problem:
Question 1: What types of objects can be stored using the ObjectOutputStream? What is the method for writing an object? What is the method for reading an object? What is the return type of the method that reads an object from ObjectInputStream
Question 2: If you serialize two objects of the same type, will they take the same amount of space? If not, give an example
Please provide description of your answers with example.