上面是毕老师视频中的异常提示,这已经不是第一次出现这种情况,下面是我电脑在处理同样问题时的异常提示
Exception in thread "main" java.io.InvalidClassException: Person; local class incompatible: stream c
lassdesc serialVersionUID = -8652980158548215869, local class serialVersionUID = 5643629266527784829
at java.io.ObjectStreamClass.initNonProxy(Unknown Source) //(Unknown Source) !!!
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at ObjectStreamDemo.readObj(ObjectStreamDemo.java:14)
at ObjectStreamDemo.main(ObjectStreamDemo.java:8)