For the precedence lesson, i got the correct answer. I’m not too sure why i got the correct answer too. Shouldn’t my reading be true instead? However, I’m a little confused as to the precedence part. If ! is read first, followed by && then ||. Doesn’t that mean only the reading of || matter since its the last one to be read?
public class Precedence {
public static void main(String[] args) {
boolean riddle = !( 1 < 8 && (5 > 2 || 3 < 5));
System.out.println(riddle);
}
}