The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Java in-Lining

Posted by Monte Gardner on August 30, 2001 at 4:35 PM

My CSE 240 Professor just gave a lecture in which he stated
that final methods in Java are compiled in-line by the Java
Compiler, kind of like C++ does. This means that instead of the compiler creating
instructions for the processor to execute the method that is
in a certain memory location, it creates a copy of the method
code where the call to it is located (I think). This doesn't
make sense to me because it seems that that would cause problems
with polymorphism, late-binding, and other things. Any
Comments on this??


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us