FUNDA (OC) Flashcards
Your Java programs should always end with the ____ extension.
.java
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.
True
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
Java Comments
A one or more lines of code terminated by a semicolon.
JAVA STATEMENTS
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.
JAVA BLOCKS
Tokens that represent names of variables, methods,
classes, etc.
Identifiers
A predefined identifiers reserved by Java for a specific
purpose. You cannot use keywords as names for your variables, classes,
methods …
Keywords
_____, _____, and ____ are not keywords but they are reserved words, so you cannot use them as names in your programs either
true, false, and null
- an item of data used to store the state of objects.
- has a data type and a name.
variable
It indicates the type of value that the variable can hold.
data type
- store data in the actual memory location of where the variable is.
Primitive Variables
- variables that stores the address in
the memory location - it points to another memory location of where the actual data is
Reference Variables