1/13
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Class
public class MyProgram
Main Method
public static void main(String[] args)
Java Skeleton
Class + main method
Literal
The fixed value being assigned to a variable
Reference
Made by programmers, reference the address of a data type rather than the data itself
Primitive
Most basic data type in Java, simple data types (int, double, Boolean)
Arithmetic Exception
Warns programmers of arithmetic errors in the code
Compound Assignment Variables
shortcut that allows variables to be reassigned a new value (x += y)
Package
Used to group data in a folder for easier use
import java.util.Scanner;
Scanner Class
A class within Java.util, contains code for user input.
Scanner input = new Scanner(system.in)
Casting
turning something from one data type to another
implicit Casting
When the program auto casts a value without the programmer needing to do so
Integer.MIN_Value
-2147483647
User Input
int number = input.nextInt()