Oracle interview question

How is Dynamic Binding performed in Java and C++