NotSerializableException on saving custom class
问题 My two classes are designed too create an array of StudentData objects (name, Date Of Birth, and ID), that include a toString override to print out all variables. It then serializes the array and saves it to a file named studentdata.txt. It should then read the array from the file and reconstruct a new array object from this data, and print out each item in the array to the console. Am getting this error when attempting to complie... Exception in thread "main" java.io.NotSerializableException