#5 System.out.println( !(false) || true && false)


#1

Can someone please help me here - im finding it hard to choose between ! && ||


#2

( !(false) || true && false)

! = NOT
&& = AND
|| = OR

!(false) means NOT false, which means true.
true&&false means true AND false ......... for an AND to be true , both conditions must be met. Since this statement says true AND false it is false. If the statement said true AND true, it would be true.

OR means that one condition must be true. ex) false || true
this statement would be true because at least one condition is true and is read as false OR true