boolean logical operators di java : | , & , ^ , ! , || , && , == , != . java memiliki tipe data primitive yang disebut boolean yang dimana hanya memiliki nilai benar dan salah
A B A|B A&B A^B !A false false false false false true true false true false true false false true true false true true true true true true false false
| the OR operator & the AND operator ^ the XOR operator ! the NOT operator || the short-circuit OR operator && the short-circuit AND operator == the EQUAL TO operator != the NOT EQUAL TO operator
contoh :
output :
|