Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Test {
- public static void hello(Collection x) {
- System.out.println("Collection");
- }
- public static void main(String[] args) {
- Test t = new Testing();
- List x = null;
- t.hello(x);
- }
- }
- import java.util.*;
- class Testing extends Test {
- public static void hello(List x) {
- System.out.println("List");
- }
- }
- public static void hello(Collection x) {
Add Comment
Please, Sign In to add comment