Java Speak
Math Class
Scanner Class
Boolean &Comparisons
Types, Casts
100
JVM
What is the Java Virtual Machine
100
Math.PI
What is the data variable for PI?
100
Scanner kbReader = new Scanner ();
What is a constructor?
100
true or false
What are the two values for a boolean?
100
final
What is the keyword for a constant?
200
Java bytecode and *.class files
What is the output of the JVM compiler
200
double x=Math.pow(3.0,3.0);
What is 27.0?
200
.nextInt()
What is parse/tokenize the next int method?
200
||
What is the OR operator?
200
(double)9/6
What code is needed to evaluate 9/6 without loss of data?
300
A dynamic class
What is an object ?
300
Math.abs(-0.5);
What is 0.5?
300
import java.io.*; import java.util.*;
What are the imports for the Scanner class?
300
System.out.println( !(1 = = 0) );
What is true?
300
double d = 29.78; int i = d;
What will not compile?
400
A template for objects
What is a class?
400
double x=Math.PI*Math.pow(radius,2.0);
What is the formula for the area of circle?
400
Scanner(System.in)
What is the console input to the Scanner class?
400
A B A&&B false false false false true false true false false true true true
What is the AND operator truth table?
400
final double PI = 3.14159; PI = 3.7789;
What will not compile?
500
Math, Scanner, java.util, java.io
What are java classes?
500
double x=(4.0/3.0)*Math.PI*Math.pow(rad, 3.0);
What is the formula for a volume of a sphere?
500
String t = "a b c"; Scanner kbReader = new Scanner(t);
What is a skanner object that parses/tokenizes a literal string?
500
(A-B<=0.00001)
What is a comparison of two doubles?
500
System.out.println(4 + 6.0/4 + 5 * 3 – 3);
What is 17.5?
M
e
n
u