JFo 5-1 and 2 Flashcards

1
Q

Great for comparing primitives/values but terrible for comparing strings.

A

Relational Operators

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

=

A

Assignment operator

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

==

A

Equality operator

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

An operator used for assigning value

A

Assignment operator

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

An operator used for comparing variables

A

Equality operator

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

Strings are considered as objects. True or false?

A

True

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

Java looks into the location of the Strings rather than its content. True or false?

A

True

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

Used to compare Strings

A

equals() method / equalsIgnoreCase()

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

It is a case sensitive method used in comparing Strings.

A

equals() method

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

Unlike equals() method, this method is not case sensitive.

A

equalsIgnoreCase()

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

These are used to handle multiple conditions in Java.

A

Logical operators

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

&&

A

AND (Binary operator)

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

||

A

OR (Binary operator)

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

!

A

NOT (Unary operator)

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

It only takes ONE boolean value.

A

Unary operator

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

It takes two (2) boolean values.

A

Binary operator

17
Q

It only takes one condition to satisfy.

A

OR operator (||)

18
Q

It takes 2 conditions to satisfy

A

AND operator (&&)

19
Q

?:

A

Ternary Conditional Operator