&& (AND) and || (OR) in IF statements
No, it will not be evaluated. And this is very useful. For example, if you need to test whether a String is not null or empty, you can write: or, the other way around If we didn’t have ‘short-circuits’ in Java, we’d receive a lot of NullPointerExceptions in the above lines of code.