click below
click below
Normal Size Small Size show me how
Runestore - Unit 1
Term | Definition |
---|---|
compiler | software the translates the Java source code into Java class file which can be run on the computer |
compiler error | an error found during compilation |
syntax error | an error found during compilation |
compilation | the process of translating source code written in a high-level programming language into a lower-level language, such as machine code, that can be executed by a computer |
main method | where execution starts a program |
variable | a name associated with a memory location in the computer |
initializing a variable | the first time you set the value of a variable |
Declare a variable | specifying the name and type for a variable. This sets aside memory for a variable of that type and associates the name with that memory location |
data type | determines the size of memory reserved for a variable. Examples: int, double, boolean, char, String |
integer | a whole number like 2 or -3 |
boolean | an expression that is either true or false |
camel case | one way to create a variable name by appending several words together and uppercasing the first letter of each word after the first word. Example: myScore |
casting a variable | changing the type of a variable using type name |
operator | common mathematical symbols such as + for addition and * for multiplication |
compound assignment | operators like x++ which means x = x + 1 or x +=y which means x = x + y |
shortcut operators | operators like x++ which means x = x + 1 or x +=y which means x = x + y |
modulo | the % operator which returns the remainder from one number divided by another |
arithmetic expressions | a sequence of operands and operators that describes a calculation to be performed. Example: 3 * (2 + x) |
operator precedence | some operations are done before others. Example *, /, % have precedence over + and - unless parentheses are used |
boolean | used to declare a variable that can only have the value of true or false |
double | used to declare a variable of type that can store numbers with decimals |
int | used to declare a variable of a type that can store whole numbers(number without decimals |
String | used to declare variable which stores a sequence of characters or text |
System.out.print() | Used to print output to the user |
System.out.println() | used to print output to the user followed by a newline to the user |
= | used for assignment to a variable |
+, -, *, /,% | arithmetic operators |