Professional Documents
Culture Documents
Java Arrays Java Strings Java OOPs Java Collection Java 8 Tutorial Java Multithreading Java Exception
Early Binding: The binding which can be resolved at compile time by the
compiler is known as static or early binding. Binding of all the static, private
and final methods is done at compile-time. Example:
Java
Output:
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge
that you have read and understood our Cookie Policy & Privacy Policy
print in superclass.
Got It !
print in superclass.
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 1/7
10/10/23, 8:29 PM Difference between Early and Late Binding in Java - GeeksforGeeks
Late binding: In the late binding or dynamic binding, the compiler doesn’t
decide the method to be called. Overriding is a perfect example of dynamic
binding. In overriding both parent and child classes have the same method.
Example:
Java
Output:
Check out our 'Data Structures and Algorithms - Self Paced' course and boost
your knowledge 🚀
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge
that you have read and understood our Cookie Policy & Privacy Policy
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 2/7
10/10/23, 8:29 PM Difference between Early and Late Binding in Java - GeeksforGeeks
print in superclass.
print in subclass.
The method definition and method call The method definition and method
are linked during the compile time. call are linked during the run time.
Actual object is not used for binding. Actual object is used for binding.
Similar Reads
Difference between Early Difference between
and Delayed Token Release Compile Time and Load
Time address Binding
Related Tutorials
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 3/7
10/10/23, 8:29 PM Difference between Early and Late Binding in Java - GeeksforGeeks
Previous Next
Article Contributed By :
chaitanyashah707
C chaitanyashah707
Follow
Improved By : vivekkumar01
Article Tags : Picked , Difference Between , Java
Practice Tags : Java
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge
that you have read and understood our Cookie Policy & Privacy Policy
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 4/7
10/10/23, 8:29 PM Difference between Early and Late Binding in Java - GeeksforGeeks
Company Explore
About Us Job-A-Thon Hiring Challenge
Legal Hack-A-Thon
Careers GfG Weekly Contest
In Media Offline Classes (Delhi/NCR)
Contact Us DSA in JAVA/C++
Advertise with us Master System Design
Campus Training Program Master CP
C++
that you have read and understood our Cookie Policy & Privacy Policy
Strings
PHP Linked List
GoLang Algorithms
SQL Searching
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 5/7
10/10/23, 8:29 PM Difference between Early and Late Binding in Java - GeeksforGeeks
R Language Sorting
Android Tutorial Mathematical
Dynamic Programming
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 6/7
10/10/23, 8:29 PM Difference between Early and Late Binding in Java - GeeksforGeeks
Commerce UPSC
Accountancy Polity Notes
Business Studies Geography Notes
Economics History Notes
Human Resource Management (HRM) Science and Technology Notes
Management Economics Notes
Income Tax Important Topics in Ethics
Finance UPSC Previous Year Papers
Statistics for Economics
https://www.geeksforgeeks.org/difference-between-early-and-late-binding-in-java/ 7/7