Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1337 :

Posted: Thu Jan 07, 2021 12:20 pm
by Denyo1986
I dont mean to be a smart-ass but since in other questions it was more precise and especially since there is a "none of the above"-option, I would suggest to remove the comma from the response options, as there is no piece of code printing any comma. The correct output would be 0 4.

Great question by the way. I would never have imagined in my wildest dreams that A calls the overridden method. I would have thought it always calls its own method. This is crazy....

Re: About Question enthuware.ocajp.i.v7.2.1337 :

Posted: Thu Jan 07, 2021 10:34 pm
by admin
Good point. Done.
thank you for your feedback!

Re: About Question enthuware.ocajp.i.v7.2.1337 :

Posted: Tue Feb 09, 2021 9:07 am
by fortesp
Shouldn't this be "None of the above"? The result after executing the code is 04 and not 0 4.

Re: About Question enthuware.ocajp.i.v7.2.1337 :

Posted: Tue Feb 09, 2021 11:31 am
by admin
You are right. Updated System.out.print(i); to System.out.print(i+" ");
thank you for your feedback!

Re: About Question enthuware.ocajp.i.v7.2.1337 :

Posted: Fri Dec 20, 2024 5:12 pm
by raphaelzintec
thank you for the last answear now i understand why its 0 and 4 with static or final

because B constructor still not initialized!! thank you very much admin for this answear it took me time to understand