FUNDA (OC) Flashcards

1
Q

Your Java programs should always end with the ____ extension.

A

.java

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

TRUE OR FALSE?

  • Filenames should match the name of your public class. So for example, if
    the name of your public class is Hello, you should save it in a file called
    Hello.java.
  • You should write comments in your code explaining what a certain class
    does, or what a certain method do.
A

True

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

A notes written to a code for documentation purposes.
Those text are not part of the program and does not affect the flow of the
program

A

Java Comments

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

A one or more lines of code terminated by a semicolon.

A

JAVA STATEMENTS

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

A one or more statements bounded by an opening and closing
curly braces that groups the statements as one unit. Block statements can
be nested indefinitely.

A

JAVA BLOCKS

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

Tokens that represent names of variables, methods,
classes, etc.

A

Identifiers

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

A predefined identifiers reserved by Java for a specific
purpose. You cannot use keywords as names for your variables, classes,
methods …

A

Keywords

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

_____, _____, and ____ are not keywords but they are reserved words, so you cannot use them as names in your programs either

A

true, false, and null

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  • an item of data used to store the state of objects.
  • has a data type and a name.
A

variable

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

It indicates the type of value that the variable can hold.

A

data type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  • store data in the actual memory location of where the variable is.
A

Primitive Variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  • variables that stores the address in
    the memory location
  • it points to another memory location of where the actual data is
A

Reference Variables

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