What is the error in this code
int x = 5.2;
The int sould be a double
What type should you use to represent the number of people in a household?
What is an Intiger
What is an Intiger used to represent
What is a Main Method
Where execution starts in a Java program.
System.out.println
System.out.println("Anything");
What is the error in this code
public class test1
The t in test is supposed to be capital
What type should you use to represent the amount of money you have?
What is a Double
What is a Boolean
An expression that is either true or false
What is System.out.print() used for
its used to print output to the user
String firstName
String firstName = "Name";
What is the error in this code
Boolean hasInsurance = false;
The B is supposed to be lowercase
What type should you use to record if it is raining or not?
What is a Boolean
What is a Double used to represent
A Double is used to represent decimal values
What is a compiler
Software that translates the Java source code into the Java class file
public class
public class Test1
What are the errors in this code
System.out.println(Hi my friend!)
There is no quotations between the quote and there is no semi colin at the end of the line
What type should you use to hold the first name of a person?
What is a String
What does it mean to initialize a line of code?
It means Setting the value of a variable for the first time
What is an Arithmatic Expression
a sequence of operands and operators that describe a calculation to be performed
public static void main
public static void main(String[] args)
What are the errors in this code
system,Out.printLn
the "," is supposed to be a .
and the O and L are supposed to be lowercase
What type should you use to represent the average grade for a course?
What is a double
What is an algorithm?
A list of directions used to follow a task
What does it mean to Cast a Variable
Changing the type of a variable using (type) name.
double price
double price = 1.11; (any number with a decimal counts)