CSA Unit 2

0.0(0)
Studied by 2 people
0%Exam Mastery
Build your Mastery score
multiple choiceAP Practice
Supplemental Materials
call kaiCall Kai
Card Sorting

1/19

Last updated 2:04 PM on 10/4/22
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards
Class
defines a new abstract data type, blueprint of the attributes and behaviors of an object
2
New cards
Object
specific creation from the class, called an instance of the class
3
New cards
Instance
an object of a class
4
New cards
Method
behaviors that an object can do
5
New cards
Parameter
a characteristic or constant factor, limit
6
New cards
Attribute
the data elements associated with an entity
7
New cards
primitve data types
int, double, boolean
8
New cards
constructor
same as class name
9
New cards
non-static method
methods that needs an object to refer to when called
10
New cards
static method
method that can be used by just referring to the name of the class
11
New cards
void
method does not return anything
12
New cards
substring(0,4)
returns string from index 0-3
13
New cards
word = long
word.indexOf("o")
returns 1
14
New cards
word = long
word.indexOf("k")
returns -1
15
New cards
autoboxing
the automatic conversion between a primitive value and a corresponding wrapper object, ex: int to Integer
16
New cards
unboxing
the automatic conversion of wrapper class to the primitive type, ex: Integer to int
17
New cards
math.random()
returns a value 0-1, but not 1
18
New cards
(int) (math.random())
returns 0 or 1
19
New cards
(int) (math.random() * 5) + 7
returns a number 7-12, but not 12
20
New cards
math.pow (10, 2)
10^2