Problem statement: Output of the program !!
string
- class MethodOverloadExe {
- public void run(Object o) {
- System.out.println("object");
- }
- public void run(String o) {
- System.out.println("string");
- }
- }
- public class OverloadingExe {
- public static void main(String[] args) {
- MethodOverloadExe m = new MethodOverloadExe();
- m.run(null);
- }
- }
string
No comments:
Post a Comment