Dynamic Binding Flashcards

1
Q

What is Binding?

Connecting a method call to the method ______ is known as binding.

There are two types of binding

Static Binding (also known as Early Binding).
Dynamic Binding (also known as Late Binding).

A

body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Static Binding

Static binding happens at c________ time.

The static binding uses ‘Type’ information for binding.

Private, final and static members (methods and variables) use static binding

Overloaded methods use static binding

A

compile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Dynamic Binding

Dynamic binding happens at r_________.

Dynamic binding uses ‘Objects’ to resolve to bind

Overridden methods use dynamic binding

A

runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Static vs Dynamic Binding

Static binding is f________ than dynamic binding

A

faster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly