Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class SomeClass {
  2. public static void main(String[] args) {
  3. SomeClass c = new SomeClass();
  4. c.f1(1, 1);
  5. // Result: 4
  6. }
  7.  
  8. public void f1(Integer i1, Integer i2) {
  9. System.out.println("1");
  10. }
  11.  
  12. public void f1(Integer i1, int i2) {
  13. System.out.println("2");
  14. }
  15.  
  16. public void f1(int b, Integer c) {
  17. System.out.println("3");
  18. }
  19.  
  20. // This method is called
  21. public void f1(long b, long c) {
  22. System.out.println("4");
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement