Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Is there any way to do operator overloading in java

MikeyJYJan 9 2021

I know that java doesn't support operator overloading, but isn't there any way we can use it? On google I couldn't find only one site that says it is possible using scala. I don't know how that would work.

Comments

Roland Mueller

To not have operator overloading is an explicit design decision for Java language.

1 - 1

Post Details

Added on Jan 9 2021
1 comment
167 views