5 Java Equality Comparison Subtleties

By Raul Rios

What do you use in Java to check if two things are equal or not? And what’s exactly the meaning of being equal? OK, you already probably know that you can use the operator == to compare primitives and objects. If you’ve read about the equals-hashCode contract you probably also know that you can ..Continue Reading

Java Operators

By Raul Rios

Operator precedence is very important. Why? Because there are questions in the exam where the right answer depends on knowing what operation is done before or after another. Take the following expression where two operators come into play: 4 + 3 % 2 What’s the result of this expression? If ..Continue Reading