AP CSA: Unit 1: Primitive Types

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Class

public class MyProgram

2
New cards

Main Method

public static void main(String[] args)

3
New cards

Java Skeleton

Class + main method

4
New cards

Literal

The fixed value being assigned to a variable

5
New cards

Reference

Made by programmers, reference the address of a data type rather than the data itself

6
New cards

Primitive

Most basic data type in Java, simple data types (int, double, Boolean)

7
New cards

Arithmetic Exception

Warns programmers of arithmetic errors in the code

8
New cards

Compound Assignment Variables

shortcut that allows variables to be reassigned a new value (x += y)

9
New cards

Package

Used to group data in a folder for easier use

import java.util.Scanner;

10
New cards

Scanner Class

A class within Java.util, contains code for user input.

Scanner input = new Scanner(system.in)

11
New cards

Casting

turning something from one data type to another

12
New cards

implicit Casting

When the program auto casts a value without the programmer needing to do so

13
New cards

Integer.MIN_Value

-2147483647

14
New cards

User Input

int number = input.nextInt()