Java's Ternary Operator - No, it's Not!

I need to stop referring to the ternary operator (? :) in Java as “the ternary operator”. It is not the ternary operator; it is a ternary operator. It may currently be the only ternary operator in the core Java Language Specification - but even so, I should call it by its correct name, which is the conditional operator.

At least I am not alone.

Java's Modulo Operator - No, it's Not!

I need to stop referring to the modulo (%) operator in Java as “the modulo operator”. It’s the remainder operator.

Java does not have a modulo operator.

Here is how Java’s remainder operator behaves, along with division (assuming int):

ExpressionResult
5/31
5%32
5/(-3)-1
5%(-3)2
(-5)/3-1
(-5)%3-2
(-5)/(-3)1
(-5)%(-3)-2

Perhaps even more importantly, I need to understand that modulo operators in other languages may not always work in a consistent way when it comes to how negative numbers are handled. Here is a great article about that:

https://torstencurdt.com/tech/posts/modulo-of-negative-numbers/

A table of results from the above article:

Language13 mod 3-13 mod 313 mod -3-13 mod -3
C1-11-1
Go1-11-1
PHP1-11-1
Rust1-11-1
Scala1-11-1
Java1-11-1
Javascript1-11-1
Ruby12-2-1
Python12-2-1