COMPUTER SCIENCE.
Trusted by students across multiple disciplines!
What is a print statement? - Answer: A print statement is how we get a command to
print to our console.
What is a variable? - Answer: Something that represents a piece of data. The value
may or may not be known at the time of declaration (creation) and can be changed.
What are the two types of variables? - Answer: Reference and Primitives'
What is a Primitive? - Answer: A primitive is for storing simple values...
Int, float, double, long, boolean, char, byte, and short
What is a Reference variable? - Answer: A reference variable stores the memory
address of an object. We say that the variable "refers" to the object.
System.out.println(); - Answer: Java method that lets us print out a line of output
followed by a newline to the user
System.out.print(); - Answer: prints output without a newline
What is a data type? - Answer: Indicates the type of data a memory location (variable
or named constant) can store.
What are the different data types in Java? - Answer: int, float, double, short, byte,
boolean, long, and char...
String in Java is actually a non-primitive data type
Boolean - Answer: A single value of either TRUE or FALSE
1
APPHIA - Crafted with Care and Precision for Academic Excellence.