My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
What is Method Overloading in Java?

What is Method Overloading in Java?

Elizabeth Panditescu's photo
Elizabeth Panditescu
·Apr 29, 2017

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 ."