
If I have a class A and method m1(int a) and another class B that extends A and also having method m1(int y,int x)... Which method is to be called is decided at what time(run time or compile time) when we write in main { B obj = new B(); obj.m1(2,2); }

calling an overloaded method is called early binding and is done at compile time
Overriden method call happens dynamically at runtime
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.