[ Latest ] Viasat Technical Interview Questions and Answers.
Practice List of Paytm Coding Questions !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

Technical Discussion :: Java

6. What is Static and Dynamic binding in Java ?

Answer:

Static Binding: The binding which can be resolved at compile time by the compiler is known as static or early binding. All the static, private and final methods have always been bonded at compile-time.



Dynamic Binding: When the compiler is not able to resolve the call/binding at compile time, such binding is known as Dynamic or late Binding. Overriding is a perfect example of dynamic binding as in overriding both parent and child classes have the same method. Thus while calling the overridden method, the compiler gets confused between parent and child class method(since both the methods have same name).

Asked In :: Wipro

Post Your Answer Here:

Name *
Email
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here