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....
About Question enthuware.ocajp.i.v7.2.1337 :
Moderators: Site Manager, fjwalraven
-
- Posts: 38
- Joined: Thu Jan 07, 2021 2:47 am
- Contact:
-
- Site Admin
- Posts: 10382
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1337 :
Good point. Done.
thank you for your feedback!
thank you for your feedback!
-
- Posts: 9
- Joined: Mon Dec 14, 2020 8:53 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1337 :
Shouldn't this be "None of the above"? The result after executing the code is 04 and not 0 4.
-
- Site Admin
- Posts: 10382
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1337 :
You are right. Updated System.out.print(i); to System.out.print(i+" ");
thank you for your feedback!
thank you for your feedback!
-
- Posts: 167
- Joined: Sun Apr 21, 2024 10:43 am
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1337 :
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
because B constructor still not initialized!! thank you very much admin for this answear it took me time to understand
Who is online
Users browsing this forum: No registered users and 26 guests