This question might have been asked many times before but was not able to find the solution.!!
On user selection of rows from JTable, I am writing the records to a file using Serialization like this-
Program is able to write the data successfully. While reading the data, when user selects the file,I am trying to deseralize it using follwing code-
At the end, I am getting EOFException(which from the docuentation is obivious:subclass of IOException).
My question is how to avoid this exception in such cases?Is there any way?