Which statement is correct about method binding in Java?
2025
Which statement is correct about method binding in Java?
- A.
Dynamic binding is used for method overloading, which is resolved at runtime
- B.
Static binding is used for method overriding and is more flexible than dynamic binding
- C.
Static binding is faster than dynamic binding, and dynamic binding is not applicable to method overloading
- D.
Both static and dynamic binding are resolved at runtime
- E.
Method overloading in Java is resolved using dynamic dispatch
Attempted by 78 students.
Show answer & explanation
Correct answer: C
Correct answer: Static binding is faster than dynamic binding, and dynamic binding is not applicable to method overloading.
In Java, method overloading is resolved at compile time, so it uses static binding. Dynamic binding is mainly associated with overridden instance methods and is resolved at runtime, which adds extra dispatch work.