Page 1 of 1
About Question enthuware.ocpjp.v8.2.1103 :
Posted: Tue May 31, 2016 6:45 pm
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
Re: About Question enthuware.ocpjp.v8.2.1103 :
Posted: Tue May 31, 2016 8:31 pm
by admin
That is correct. The constructor is invoked only once.
Re: About Question enthuware.ocpjp.v8.2.1103 :
Posted: Tue May 31, 2016 10:48 pm
by schchen2000
Thank you.
Schmichael
Re: About Question enthuware.ocpjp.v8.2.1103 :
Posted: Mon Jul 09, 2018 11:20 am
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
Re: About Question enthuware.ocpjp.v8.2.1103 :
Posted: Mon Jul 09, 2018 12:43 pm
by admin
You are right. Fixed.
thank you for your feedback!