1/22
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No study sessions yet.
What happens when a program is compiled
It is checked for errors
What character ends a Java command
;
Strings are made up of what characters
All
What does the compiler do with comments? What is the purpose of comments
Completely ignores comments to give information to others
What are the rules for legal Java variable names
No spaces, can’t start with a number
What keyword is used to make a variable constant
Final
Difference between integer and double division
Integer will give and integer answer, double will give a double answer
3 ways to add or subtract one from a variable
++ a=+1
What is casting used for, double to int and int to double
Widening and narrowing
Difference between object and class
Class is like recipe and object is like the dish
What are escape characters
\n
\”
\\
\t
How is + used (2)
++ (“”+int)
Methods of string class
Substring(a)
Substring(a,b)
Length()
To upper/lower case
Method of math class
Sqrt
Pow
Random
Primitive data type
Boolean, int, double
Variable assigned as null
=null
If statements
If true continue
If else statements
If false, this runs
If if else if statements
Final if everything is false
Nested if statements
And/or logic statements
&& || !
Truth tables
A||B A&&B
While loops and for loops
While(a>2){
For(int a= 1;a>2;a++