Page 1 of 1

About Question enthuware.ocpjp.v8.2.1752 :

Posted: Sun Jun 25, 2017 2:08 pm
by ssszzz
Hello
It seems the following statement is wrong:
To customize the behavior of class serialization, the readObject and writeObject methods should be overridden.
since there is nothing about overriding, see https://docs.oracle.com/javase/8/docs/a ... tream.html

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
    }

Re: About Question enthuware.ocpjp.v8.2.1752 :

Posted: Sun Jun 25, 2017 11:19 pm
by admin
You are right. It should say "implemented". Fixed.
thank you for your feedback!
Paul.