Overloading Methods (Functions) in Java is not that hard if you read this article. Our next example demonstrates declaring and invoking overloaded methods. Called square with int argument: 7 Square of integer 7 is 49 Called square with double argument: 7.500000 Square of double 7.5 is 56.250000 then the compiler might use the logical name " method1 of int and float ."