Guest User

Untitled

a guest
Jan 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import java.util.*;
  2. public class Test {
  3. public static void hello(Collection x) {
  4. System.out.println("Collection");
  5. }
  6. public static void main(String[] args) {
  7. Test t = new Testing();
  8. List x = null;
  9. t.hello(x);
  10. }
  11. }
  12.  
  13. import java.util.*;
  14. class Testing extends Test {
  15. public static void hello(List x) {
  16. System.out.println("List");
  17. }
  18. }
  19.  
  20. public static void hello(Collection x) {
Add Comment
Please, Sign In to add comment