Page 1 of 1
About Question enthuware.ocajp.i.v8.2.1456 :
Posted: Thu Oct 26, 2017 3:23 pm
by bortnikov_sa@mail.ru
I think thet the inheritance makes code more reusable.

Re: About Question enthuware.ocajp.i.v8.2.1456 :
Posted: Tue Jan 09, 2018 10:10 am
by rogersjava
As you write the questions ambiguity could be removed by changing the option from
"More efficient code" to "More efficient code at runtime"
This is more likely to appear in the actual test.
Re: About Question enthuware.ocajp.i.v8.2.1456 :
Posted: Tue Feb 06, 2018 4:38 pm
by igor.simecki
I agree. The code can be more efficient in a way that the programmer doesn't have to write duplicate code.
This way it's a very subjective answer.
Re: About Question enthuware.ocajp.i.v8.2.1456 :
Posted: Tue Feb 06, 2018 10:25 pm
by admin
When a programmer doesn't have to write duplicate code that means the programmer is efficient, not the code. Efficiency of the code is always about execution time of that code.
Re: About Question enthuware.ocajp.i.v8.2.1456 :
Posted: Thu Aug 26, 2021 7:22 am
by Leonid
It protects the code by preventing extension.
Just the reverse is true. Extension is how polymorphism is achieved.
Why, without polimorphism programmer must write too much code for every single case so it do code more extension. And polimorphism preventing extension. Why not?
Re: About Question enthuware.ocajp.i.v8.2.1456 :
Posted: Wed Aug 09, 2023 9:16 am
by tostilio
Ok, I understand the dynamics with which the exact method to be called from the jvm is deduced at runtime. From a research I have seen in IT the adjective "dynamic" is used only in relation to the "dynamic analysis of the code", which means, therefore, "more dynamic code"?
Thanks