Interview Questions:
Interview Questions:
1) Can we overload main method? Yes, we can but the program execution starts with main method having arguments as (String[] args) Other versions of the main program should be invoked by the programmer explicitly.
2) Can we overload Non-static method? Yes.
3) Can the return type differ while overloading? Yes.
Last updated
Was this helpful?