Uncategorized

Why Java does not support Operator overloading

Simple and clear design is one of the goals of java designer they just don’t want to replicate the language but wanted to have a clear, truly object oriented language. Adding Operator overloading will definitely make design more complex than without it and it also slows the JVM because it needs to do extra work to identify the actual meaning of operators and reduce the opportunity to optimize the language by guarantee behavior of operators in Java. to read more see here http://javarevisited.blogspot.com/2011/08/why-java-does-not-support-operator.html
http://javarevisited.blogspot.com/2011/08/why-java-does-not-support-operator.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s