About Question enthuware.ocpjp.v7.2.1732 :

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
M.Komarov
Posts: 17
Joined: Fri Sep 06, 2013 1:37 am
Contact:

About Question enthuware.ocpjp.v7.2.1732 :

Post by M.Komarov »

Hi!

Is it necessary to add the semicolon in the end of the line before line //2:
public enum EnumB{ B, BB, BBB
public Object clone(Object o){ return B; } //2
};
? Or add the explanation of the second compile time error to the option 2?

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

Re: About Question enthuware.ocpjp.v7.2.1732 :

Post by admin »

Semi-colon is fine. It is not necessary, but it is not an error either.

M.Komarov
Posts: 17
Joined: Fri Sep 06, 2013 1:37 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1732 :

Post by M.Komarov »

I mean before line //2, i.e. after "BBB". My compiler says ',','}', or ';' expected (if I rename clone to something else).

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

Re: About Question enthuware.ocpjp.v7.2.1732 :

Post by admin »

I see. Yes, it should be there. Fixed.

thank you for your feedback!

Crashtest
Posts: 18
Joined: Fri May 31, 2013 1:18 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1732 :

Post by Crashtest »

Just so you know ";" is still missing in the code as per above posts.
I have downloaded the latest questions set less than two weeks ago...

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

Re: About Question enthuware.ocpjp.v7.2.1732 :

Post by admin »

Definitely fixed in version 1.74. Please download the question bank again.

HTH,
Paul.

Post Reply

Who is online

Users browsing this forum: No registered users and 25 guests