Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass
- {
- void myMethod(int i) {System.out.println("int version");}
- void myMethod(String s) {System.out.println("String version");}
- public static void main(String args[])
- {
- MyClass obj = new MyClass();
- char ch = 'c';
- obj.myMethod(ch);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment