Computer Science, asked by PragyaTbia, 1 year ago

What is the difference between static binding and Dynamic binding.

Answers

Answered by gokulraam0507
0

1) Static binding in Java occurs during Compile time while Dynamic binding occurs during Runtime.

2) private, final and static methods and variables uses static binding and bonded by compiler while virtual methods are bonded during runtime based upon runtime object.

Answered by smartbrainz
1

Difference between static binding and Dynamic binding:

Static binding:

  • The static binding occurs at the compile-time period.
  • The Type information for binding is used by static binding.
  • The static binding is bonded with the overloaded methods.
  • Static binding is also labeled as early binding.

Dynamic binding:

  • The dynamic binding turns out during the run period.
  • The Objects to settle binding are used by the dynamic binding.
  • The dynamic binding is bonded by overridden methods.
  • The late binding is another name of dynamic binding.

Similar questions