final double EPSILON = 1E-14;
if (Math.abs(x-y) <= EPSILON) - Answers To avoid round-off error when comparing float-point numbers,
test whether the are close enough: write syntax
s.compareTo(t) < 0 - Answers Comparing Strings
s comes before t in the dictionary
no object - Answers null reference means?
== - Answers what relational operator do you use to test for null
boolean data type - Answers only two possible values: true and false, lowercase, reserved words in java
&& - Answers Logical operator for "and"
|| - Answers logical operator for "or"
! - Answers logical operator for unary not
condition ? then-value; else-value - Answers syntax of the ? operator
switch Statement - Answers what statement do we use whenever the conditions in an if-else chain are
designed to check for constant values representing a finite number of cases
countable - Answers switch-case statement
switch(exp)
exp must be "__________" primitive type (byte, int, car, NOT float or double)
entry point - Answers case literal
- serves as the " _______" for the case when exp==literal
Loops - Answers are used to repeatedly execute a statement or a group of statements
for (expr1; expr2; expr3)
statement - Answers for statement syntax:
initialization of setup - Answers expr1 in the for statement syntax (i=1)
condition - Answers expr2 in the for statement syntax (i<=3)
expr3 - Answers expr3 in the for statement syntax (i++)