Logic Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

De Morgan’s Law

A

!(a && b) == !a || !b

!(a || b) == !a && !b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

== or .equals

A

you can compare primitive types using ==, or you can say if String one = “Hello” and String two = one, those would be equal, but String two= “Hello” doesn’t equal, so use .equals to compare values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Logic equality

A

This means using .equals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

reference equality

A

This means using ==

How well did you know this?
1
Not at all
2
3
4
5
Perfectly