Criado por Nathan Hunsdale
mais de 10 anos atrás
|
||
Variables
What are they?
Java distinguishes between 2 types of data:
What are they?
Variables
To be able to use variables they need to be _____
Variables
The first thing to happen in a program is usually _____ variables
Variables
Choosing a suitable name
The names given to a variable are known as an _____
Variables
Identifiers
- Cannot START with a _____
- Cannot use _____ or spaces
- Should start with _____ _____ names
Primitive Data Types
How many are there?
Primitive Data Types
Every _____ must have a type associated with it
Primitive Data Types
What are the 8?
Primitive Data Types
byte
Minimum value : _____
Max value : _____
Default Value : _____
It is used to _____ _____ in large arrays as they are 4 times smaller than ints
Primitive Data Types
short
Number of bits : _____
Default Value : _____
It is used to _____ _____ in large arrays as they are _____ times smaller than ints
Primitive Data Types
int
Number of bits : _____
Default Value : _____
Generally used as the default data type for integral values unless there is a concern about _____
Primitive Data Types
long
Number of bits : _____
Default Value : _____
Used when a wider range than an _____ is needed
Primitive Data Types
float
Number of bits : _____
Default Value : _____
Used to save memory in large arrays of _____ _____ numbers
It is never used for _____ values such as currency
Primitive Data Types
double
Number of bits : _____
Default Value : _____
Used as the default data type for _____ values
It is never used for _____ values such as currency
Primitive Data Types
boolean
Default Value : _____
Used as the default data type to track _____ or _____
Primitive Data Types
char
Number of bits : _____
Used to store _____ character
Reference Data Types
Reference variables are created using defined _____ of the classes
Reference Data Types
They are used to access _____
Reference Data Types
They include _____ and _____ _____
Variables
Declare an int called number
Variables
Initialize an int called number with a value of 4
Variables
What symbol is the assignment operator when assigning values to variables?
Variables
What is an expression?
Relational Operators
What is a condition?
Relational Operators
What does an if statement allow a program to do?
Under the Bonnet
JVM
What does it stand for?
Under the Bonnet
JVM
Is it platform independent?
Under the Bonnet
One major advantage and characteristic of Java is _____
Portability
How is it achieved?
What is the intermediary between the Java language and the OS?
Java Bytecode
How is it executed?
Compiling and Running
What is the file extension for a Java file?
What is used to turn the source code into bytecode?
After Javac finishes compiling the source code then it creates a new class with the extension _____
Which file extension does the JVM run?