AP CSA VOCAB

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

access specifier

1 / 79

flashcard set

Earn XP

80 Terms

1

access specifier

public or private

New cards
2

argument

a value passed to a method

New cards
3

array

a static data type holding a homogeneous sequence of values

New cards
4

assign

give a value to a variable

New cards
5

bit

a binary digit, 0 or 1

New cards
6

boolean

true or false

New cards
7

byte

a set of 8 bits

New cards
8

call/invoke

executing a method

New cards
9

cast

convert a value to another type

New cards
10

class

a related set of fields and methods

New cards
11

comment

/, /* */, and /** */

New cards
12

compile

translate Java code into low-level bytecode

New cards
13

compile-time

taking place between pressing 'run' and execution

New cards
14

compound assignment

+=, -=, *=, /=, or %=

New cards
15

concatenate

combine, usually referring to combining strings

New cards
16

console

the prompt where output appears and input is entered

New cards
17

constructor

a special method automatically run when you create a new object

New cards
18

control structure

if, for, while, for-each

New cards
19

debug

identify and resolve errors

New cards
20

declare

allocate memory to a variable and identify its type

New cards
21

decrement

decrease by one

New cards
22

documentation/specification

comments or separate files indicating the function of a method or class

New cards
23

double

a rational value

New cards
24

driver class

the first class run, which contains the main method

New cards
25

error

a fatal program state, like OutOfMemoryError

New cards
26

escape sequence

special character combination; \n, \", \\

New cards
27

exception

a sometimes-fatal program state, like ArithmeticException

New cards
28

expression

a set of values and operators that evaluates to a single value

New cards
29

field

a variable representing a property of a class

New cards
30

final variable/constant

a variable defined with the 'final' keyword whose value is fixed

New cards
31

floating-point

a numeric value containing a decimal point

New cards
32

getter/accessor

a method that retrieves fields in a class

New cards
33

header

the first line of a class, method, or control structure; e.g., 'public int add2(int x)' or 'if (a || b)'

New cards
34

immutable

cannot be changed

New cards
35

import

allow for use of non-standard Java features

New cards
36

increment

increase by one

New cards
37

index

a specific position/slot in a string or array

New cards
38

infinite loop

a loop that will never terminate

New cards
39

initialize

declare and assign a value at once

New cards
40

input

values entered by the user

New cards
41

instance

an implementation of a class

New cards
42

instantiate

create a new instance

New cards
43

int

an integral value

New cards
44

iterate

cycle through each value in a sequence

New cards
45

keyword

a special Java term (usually stylized as bold in Eclipse); boolean, class, double, else, final, for, if, import, int, new, package, private, public, return, static, void, while

New cards
46

logic

using boolean values with &&, ||, and !

New cards
47

loop

a repeating control structure; for, while, for-each

New cards
48

main method

the starting point of the program; its signature is static main(String[])

New cards
49

memory

the set of all stored values and objects in a program

New cards
50

method

a named, independent block of code

New cards
51

mutable

can be changed

New cards
52

nesting

control structures inside of other control structures

New cards
53

null

a special value representing a missing value

New cards
54

object

a variable holding a non-primitive type

New cards
55

operator

arithmetic, comparison, logical, assignment

New cards
56

output

values displayed by the program

New cards
57

overload

making methods with the same name but different signatures

New cards
58

package

a related group of classes

New cards
59

parameter

a variable representing a method's input

New cards
60

postcondition

a set of statements that should be true after executing a method

New cards
61

precondition

a set of statements that can be assumed to be true prior to executing a method

New cards
62

primitive

int, double, and boolean

New cards
63

private

only accessible within its class

New cards
64

public

accessible from anywhere in the program

New cards
65

return

pass on a value to a parent method

New cards
66

runtime

taking place after the source has compiled

New cards
67

scope

the block in which a variable is defined

New cards
68

setter/mutator

a method that changes fields in a class

New cards
69

short-circuit evaluation

a method of evaluating boolean logic used by Java that allows coders to avoid exceptions

New cards
70

signature

a unique identifier held by all methods; includes its name and parameter types; e.g. main(String[])

New cards
71

source

the code in a program

New cards
72

statement

an individual instruction followed by a semicolon

New cards
73

string

a sequence of characters, wrapped in quotes

New cards
74

syntax

the organization of words and symbols in the source code

New cards
75

traverse

iterate through an array

New cards
76

truncate

remove the end of a number or string

New cards
77

type

the primitive type or class that defines a variable

New cards
78

variable

a name associated with a type and value

New cards
79

void

indicates a method returns no value

New cards
80

wrapper class

a class that "wraps" a primitive type; Integer, Double, and Boolean

New cards

Explore top notes

note Note
studied byStudied by 132 people
... ago
5.0(1)
note Note
studied byStudied by 55 people
... ago
4.5(2)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 30 people
... ago
5.0(1)
note Note
studied byStudied by 37 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 23129 people
... ago
4.8(187)

Explore top flashcards

flashcards Flashcard (21)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (93)
studied byStudied by 13 people
... ago
5.0(2)
flashcards Flashcard (27)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (58)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (83)
studied byStudied by 8 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (68)
studied byStudied by 29 people
... ago
5.0(2)
robot