Computer Science, asked by chordiasahil24, 1 year ago

Difference between static and dynamic binding

Answers

Answered by naina88
1
static use only single binding and dynamic use more than 2 binding
Answered by Pratikhero
1
Here are few important difference between static and dynamic binding

1. Static binding in Java occurs during compile time while dynamic binding occurs during runtime.
2. private, final and static methods and variables use static binding and are bonded by compiler while virtual methods are bonded during runtime based upon runtime object.
3. Static binding uses Type (a class in Java) information for binding while dynamic binding uses object to resolve binding.
4. Overloaded methods are bonded using static binding while overridden methods are bonded using dynamic binding at runtime.
Similar questions