Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Late binding
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Late binding in Java=== There are three definitions for late binding in Java. Early documents on Java discussed how classes were not linked together at compile time. While types are statically checked at compile time, different implementations for classes could be swapped out just prior to runtime simply by overwriting the class file. As long as the new class definition had the same class and method names, the code would still work. In this sense it is similar to the traditional definition of late binding. Currently, it is popular to use the term late binding in Java programming as a synonym for [[dynamic dispatch]]. Specifically, this refers to Java's [[Dynamic dispatch#Single and multiple dispatch|single dispatch]] mechanism used with virtual methods. Finally, Java can use late binding using its reflection APIs and [[type introspection]] much in the same way it is done in COM and .NET programming. Generally speaking those who only program in Java do not call this late binding. Likewise the use of "duck typing" techniques is frowned upon in Java programming, with abstract interfaces used instead. Oracle, the current owner of Java, has been known to use the term late binding in the "duck typing" sense when discussing both Java and other languages in the same documentation.<ref>{{cite web|url=http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jcom/comtowls.html |title=Calling into WebLogic Server from a COM Client Application |publisher=Download.oracle.com |date= |accessdate=2013-08-16}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)