Computer Science, asked by anuj, 1 year ago

Why method overloading is not possible by changing the return type in java?

Answers

Answered by Sushil4002
0
Actually return type is not a part of method signature, sochanging return type only, is notsufficient to tell JVM whichmethod should be picked since all other things are same in both the methods. ... Anurag has asked about method overloading while you have answered the method overriding.
Similar questions