73 Views

what is early/static binding in Java??


S. Saha 11th Jan, 2020
Answer (1)
user-img
shivangi mehta 11th Jan, 2020

Hello,

Lets understand binding first.

Binding means the link between reference and actual code e.g . when you refer a variable it's bonded to the code where it is defined, similarly when you call a method, it's linked to the code where a method is defined.

There are two types of method binding in Java, static binding and dynamic binding. When a method is called in Java it's bonded to the actual code either at compile time or runtime, when the program is actually started and objects are created. As the name suggest, static binding is more of static nature hence it occurs at compile time i.e. your code knows which method to call once you compiled your Java source file into a class file. Since it happens early in program's life cycle it is also known as early binding in Java.

Related Questions

Amity University | MCA Admiss...
Apply
Ranked amongst top 3% universities globally (QS Rankings)
Shoolini University Admission...
Apply
NAAC A+ Grade | Ranked No.1 Private University in India (QS World University Rankings 2025)
TMV, Pune | M.Sc Computer App...
Apply
2-year postgraduate program focusing on advanced computing and IT applications
JSS University Noida MCA 2025
Apply
170+ Recruiters Including Samsung, Zomato, LG, Adobe and many more | Highest CTC 47 LPA
Amity University | BCA Admiss...
Apply
Ranked amongst top 3% universities globally (QS Rankings)
TMV, Pune | B.Sc Computer App...
Apply
3-year undergraduate program focusing on practical computing skills.
View All Application Forms

Download the Careers360 App on your Android phone

Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile

150M+ Students
30,000+ Colleges
500+ Exams
1500+ E-books