I need to write an entire object to a file and retrieve whenever I want. Suppose I want to write a object of a class “Student” which has attributes such as grades, name, roll etc.. And when I want to access and manipulate the attributes later whenever I need. Can you show me a way to accomplish it?
Share
Use ObjectOutputStream.
Like so.