Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- method(null);
- }
- public static void method(Object o) {
- System.out.println("Object impl");
- }
- public static void method(String s) {
- System.out.println("String impl");
- }
Advertisement
Add Comment
Please, Sign In to add comment