About Question enthuware.ocpjp.v8.2.1752 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
ssszzz
Posts: 13
Joined: Wed Jun 14, 2017 1:56 pm
Contact:

About Question enthuware.ocpjp.v8.2.1752 :

Post 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
    }

admin
Site Admin
Posts: 10385
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. It should say "implemented". Fixed.
thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests