Why Operator Overloading is not supported in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Form JVM perspective supporting operator overloading is more difficult and if the same thing can be achieved by using method overloading in more intui

Statistics

  • Total Hits - 27229

  • Total Votes - 103 votes

  • Vote Up - 45 votes

  • Vote Down - 58 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2011-09-01 13:52:15

Description

Form JVM perspective supporting operator overloading is more difficult and if the same thing can be achieved by using method overloading in more intuitive and clean way it does make sense to not support operator overloading in java. a complex JVM will result in slower JVM than a relatively simpler JVM and reduce the opportunity of optimization by taking out guaranteed behavior of operators in java. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements