Why we dont use operator overloading in Java?

Java doesn’t allow user defined operator overloading because if you allow programmer to do operator overloading they will come up with multiple meanings for same operator which will make the learning curve of any developer hard and things more confusing and messing .

Sizin İçin Seçtik  What is method overloading and overriding?

Leave a Reply

Your email address will not be published. Required fields are marked *