About Question enthuware.ocpjp.v8.2.1752 :
Posted: Sun Jun 25, 2017 2:08 pm
Hello
It seems the following statement is wrong:
as a proof the code below produces an error 'method does not override or implement a method from a supertype':
It seems the following statement is wrong:
since there is nothing about overriding, see https://docs.oracle.com/javase/8/docs/a ... tream.htmlTo customize the behavior of class serialization, the readObject and writeObject methods should be overridden.
as a proof the code below produces an error 'method does not override or implement a method from a supertype':
Code: Select all
@Override
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
// nothing
}