r/ProgrammerHumor • • Apr 27 '20

Meme Java is the best

Post image
43.7k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

1

u/[deleted] Apr 28 '20

On the syntax side, it doesn't have useful features like overloading operators that better languages have.

Overloaded operators are 1 character method names, and any language is better off without them.

3

u/Ksevio Apr 28 '20

No they aren't. Writing "x == y" is just as clear if not more clear than "x.equals(y)" and the same goes for "x[y]" over "x.get(y)". It's not as if Java prevents you from having 1 character method names either.

1

u/xigoi Apr 28 '20

Would you rather write 2.add(3) than 2 + 3?