CSA Java PLTW Review

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

1/38

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.

39 Terms

1
New cards

syntax

Precise rules defining how the letters, words, and punctuation of a programming language are required to be used

2
New cards

class

blueprint, of the attributes and behaviors of an object. It is an abstraction defining a type of object, with methods and attributes

3
New cards

object

specific instance of a class with defined attributes

4
New cards

method

Methods define an object's behavior, what it can do, or what can be done to it.

5
New cards

main method

main entry point of the program, with header: public static void main(String[] args)

6
New cards

string

A data type representing a sequence of characters.

7
New cards

primitive variables

int - integer (whole numbers: 0, 1, 2, 3)

double - real values (0.0, 3.145, -2.72)

char - single character values ('a' , '3' , '$')

boolean - only one of two values: true or false

8
New cards

what must be defined to create a variable

the type, identifier, and value

9
New cards

Camel Casing

A style of creating identifiers in which the first letter is not capitalized, but each new word is.

10
New cards

modulus operator

finds the remainder after division of one number by another.

11
New cards

comment

lines ignored by compiler to describe function of code

12
New cards

arithmetic operators

+,-,*,/,%

13
New cards

concatination

Attaching two things side-by-side, frequently strings of text.

14
New cards

concatenation operator

+ (plus sign)

15
New cards

compound assignment operator

performs two tasks in one step; it performs a mathematical calculation followed by an assignment.

16
New cards

increment and decrement operators

++, --, increase or decrease value by 1

17
New cards

machine code

Zeros and ones that represent simple instructions executed by a processor.

18
New cards

overflow

occurs when an integer value falls outside of the allowed range

19
New cards

widening

process by which a value is converted from a smaller data type (such as an int) to a larger data type (such as a double)

20
New cards

narrowing

process by which a value is converted from a larger data type (such as a double) to a smaller data type (such as an integer).

21
New cards

type casting

converting from one data type to another temporarily

22
New cards

casting operators

used to case data types, (int) or (double)

23
New cards

object-oriented programming(oop)

programming in which code describes a class with methods, including a method for creating an object

24
New cards

instantiation

process of creating an object

25
New cards

constructor

method for creating an object in a class.

26
New cards

signature

defines a constructor or a method. It is the name and a list of parameters, such as "Cake(int t)"

27
New cards

header

has access level(public or private), return type(void, int, ect.), signature(name and paramaters)

28
New cards

formal paramaters

list of variables passed to a constructor or method and used in its implementation

29
New cards

package

collection of modules

30
New cards

overloading

multiple definitions with the same name but different signatures.

31
New cards

actual paramaters

value that is passed into a constructor or method

32
New cards

Call by value

constructors or methods are called, call by value initializes formal parameters with copies of the actual parameters

33
New cards

object reference variables

hold a memory address that refers to a specific object

34
New cards

dot operator

the period or dot (.) is used to invoke an object's method

35
New cards

non-static

type of method call. It means that an object must be instantiated to invoke the method

36
New cards

abstraction

hiding a lot of the detail of a system or a process, making it simpler to read and understand

37
New cards

null

no value

38
New cards

exception

error or other message raised by the interpreter or compiler to indicate a special circumstance that should be handled by an exception handler. If an exception is not handled, the program will stop and report the error

39
New cards

scope of a variable

defines where it is accessible or visible in a program