tag:blogger.com,1999:blog-8712770457197348465.post7299318404797432850..comments2024-03-28T02:47:19.159-07:00Comments on Javarevisited: Java Best Practices for Method Overloading? Examplesjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-8712770457197348465.post-12856134672396218012017-06-25T20:29:42.416-07:002017-06-25T20:29:42.416-07:00Thank you Arun, I am glad that you find these best...Thank you Arun, I am glad that you find these best practices about method overloading and constructor useful. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-28681092819274944442017-06-25T01:31:36.979-07:002017-06-25T01:31:36.979-07:00really helpful article, sir.
THanksreally helpful article, sir.<br />THanksArun Singhhttps://www.blogger.com/profile/00145955392915063714noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-1739375112454735642015-01-07T09:52:40.105-08:002015-01-07T09:52:40.105-08:00thanks dude, for giving such a great information. ...thanks dude, for giving such a great information. but i want to know, why method overloading called compile time polymorphism?Anonymoushttps://www.blogger.com/profile/01650218885481814909noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-32955011225127936022013-01-18T00:10:41.616-08:002013-01-18T00:10:41.616-08:00One more to add in your list of best practices. Su...One more to add in your list of best practices. Suppose If you like to overload methods so that it will work for every type in Java than you need to overload it for primitive type<br />boolean<br />byte<br />char<br />short<br />int<br />float<br />double<br />and Object.<br /><br />All most all API including JDK does that. Look at Arrays.toString() method it has overloaded for all above types.<Jamesnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-48122890275839760892013-01-08T18:21:23.162-08:002013-01-08T18:21:23.162-08:00I like this kind of advice which is based on exper...I like this kind of advice which is based on experience. Though You don't call all these as Java best practices, rather common mistakes to avoid while doing method overloading and constructor overloading in Java.Stevenoreply@blogger.com