Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

Technical Discussion :: Java

7. What are the differences between Static Binding and Dynamic Binding?

Answer:

The difference between static and dynamic binding in Java.




  1. Static binding happens at compile-time while dynamic binding happens at runtime.

  2. Binding of private, static and final methods always happen at compile time since these methods cannot be overridden. Binding of overridden methods happens at runtime.

  3. Java uses static binding for overloaded methods and dynamic binding for overridden methods.



 

Asked In :: Wipro Sopra Steria

Post Your Answer Here:

Name *
Email
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here