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

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
Denyo1986
Posts: 38
Joined: Thu Jan 07, 2021 2:47 am
Contact:

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

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

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

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

Post by admin »

Good point. Done.
thank you for your feedback!

fortesp
Posts: 9
Joined: Mon Dec 14, 2020 8:53 am
Contact:

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

Post by fortesp »

Shouldn't this be "None of the above"? The result after executing the code is 04 and not 0 4.

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

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

Post by admin »

You are right. Updated System.out.print(i); to System.out.print(i+" ");
thank you for your feedback!

raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

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

Post 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

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests