Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SomeClass {
- public static void main(String[] args) {
- SomeClass c = new SomeClass();
- c.f1(1, 1);
- // Result: 4
- }
- public void f1(Integer i1, Integer i2) {
- System.out.println("1");
- }
- public void f1(Integer i1, int i2) {
- System.out.println("2");
- }
- public void f1(int b, Integer c) {
- System.out.println("3");
- }
- // This method is called
- public void f1(long b, long c) {
- System.out.println("4");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement