[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: Java

25 / 66

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:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.