Define variable
A place in memory that we can reference, with what it holds being called a value
Relational equality symbol
==
Assignment symbol
=
Expression definition
Syntactically correct combination of variables, constants, operators, method invocations and values that evaluates to a single value.
How many bits can an int hold?
32
Define constant
A memory location with a fixed value which cannot be changed by the program
Block define
Any lines of code surrounded by { }
Garbage collector function
Remove the value from variables that are out of scope's memory for dynamically-allocated values
A variable must be ________ before its first use to avoid a compilation error
Initialized/instantiated
How many basic data types are there in java
8
A system program that brings together separately compiled modules of a program into a form language that is suitable for execution
linker/loader
Is the output of a java compiler executable code?
No
Bytecode definition
Code generated by a java compiler
Steps of program development
define
analyze
develop
write
test
debug
document
Can the modulus operator be applied to floating point numbers?
Yes
Which has higher precedence? ++ or *
++
Which has higher precedence? + or =
+
Which is larger? float? or double?
Double, it is twice the size (64 bit rather than 32), hence the name
The first letter of the names of primitive data types is written in _______-case, while for non-primitive data types it is written in _______-case
lower, upper
Floating-point numbers are by default set to the ________ data type
double
What is returned when the indexOf() method searches for a character that is not a part of the string
-1
is a float initialized as 0.1 + 0.1 + 0.1 + 0.1 + 0.1 going to equal another float initialized as 0.1 * 5?
No, there would be a floating-point comparison error.
Should you use == to compare strings?
No, as it compares the location of the strings in memory, which will not be equal if they're different strings. Use the equals() method