About Question enthuware.ocpjp.v8.2.1103 :

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
schchen2000
Posts: 106
Joined: Mon Mar 28, 2016 11:36 pm
Contact:

About Question enthuware.ocpjp.v8.2.1103 :

Post by schchen2000 »

The constructor of the class resolves to the same object each time it is invoked.
Why is this answer choice wrong? Is that because of "each time it is invoked"????

That phrase seems to suggest that the constructor is invoked more than once.

In fact, the constructor of a singleton class is to be invoked ONCE AND ONLY ONCE.

Is that why that answer option is wrong?

Thank you.

Schmichael

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

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

Post by admin »

That is correct. The constructor is invoked only once.
If you like our products and services, please help us by posting your review here.

schchen2000
Posts: 106
Joined: Mon Mar 28, 2016 11:36 pm
Contact:

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

Post by schchen2000 »

Thank you.

Schmichael

Harvey Manfrenjensen
Posts: 14
Joined: Fri May 11, 2018 6:59 am
Contact:

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

Post by Harvey Manfrenjensen »

In the explanation, should it not be

Code: Select all

private static final SpeedSensor theInstance = new SpeedSensor();
instead of

Code: Select all

private static final theInstance = new SpeedSensor();
?

Regards, Paul

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

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

Post by admin »

You are right. Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 40 guests