FINAL EXAM Flashcards

1
Q

The Java programming language supports various arithmetic operators for all floating-point and integer numbers.

A

Arithmetic Operators

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

Are used to increase or decreasing the value of an operand. Increment operator adds 1 to the value of a variable, whereas the decrement operator decreases a value.

A

Unary Operators

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

==

A

Equal to

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

!=

A

Not equal to

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

>

A

Greater than

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

> =

A

Greater than or equal to

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

<

A

Less than

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

<=

A

Less than or equal to

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

&&

A

Conditional - AND

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

l l

A

Conditional - OR

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

Can compare numbers or strings and perform evaluations. (instanceof)

A

Comparison Operator

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

~

A

Unary Bitewise Complement

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

«

A

Signed Left Shift

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

> >

A

Signed Right Shift

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

> > >

A

Unsigned Right Shift

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

&

A

Bitwise AND

17
Q

( ^ )

A

Bitwise Exclusive OR

18
Q

l

A

Bitwise inclusive OR

19
Q

Change values of variables, call methods and create objects

A

Expression Statement

20
Q

Declare variables

A

Declaration Variables

21
Q

Determine the order that statements are executed
Typically, Java statements parse from the top to the bottom of the program

A

Control-Flow Statement

22
Q

Sequence of zero or more statement enclosed in braces { }
Generally used to group together several statements, so they can be used in a situation that requires you to use a single statement

A

Block Statement

23
Q

Use if to specify a block of code to be executed, if a specified condition is
true

Use else to specify a block of code to be executed, if the same condition is
false

Use else if to specify a new condition to test, if the first condition is false

Use switch to specify many alternative blocks of code to be executed

A

Conditional Statement

24
Q

Use the if statement to specify a block of Java code to be executed if a condition is true.

A

If Statement

25
Q

Use the else statement to specify a block of code to be executed if the condition is false.

A

Else Statement

26
Q

Use the else if statement to specify a new condition if the first condition is false.

A

Else IF Statement

27
Q

There is also a short-hand if else, it consists of three operands. It can be used to replace multiple lines of code with a single line. It is often used to replace simple if else statements.

A

Ternary Operator

28
Q

variable = (condition) ? expressionTrue : expressionFalse;

A

Ternary Operator

29
Q

Is a sequence of characters that exist as an object of the class java.lang. Java strings are created and manipulated through the string class. Once created, a string is immutable – its value cannot be changed.

A

Java String

30
Q

Is a container object that holds a fixed number of values of a single type.

A

Array

31
Q

Each item in an array is called
It also accessed by its numerical index

A

Element

32
Q

int[] anArray;

A

Declaring an Array

33
Q

One way to create is with the new operator
anArray = new int[10];

A

Creating an Array