java unit 1 167

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

1/130

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.

131 Terms

1
New cards

abstract class

a class that cannot instantiate/ create objects + designed to serve as template for other classes

2
New cards

abstract method

a method with no body

3
New cards

aggregation

has a relationship

4
New cards

abstraction

separating implementation from use

5
New cards

accessor/getter

a method that accesses fields to get value but does not modify a class field.

6
New cards

actual parameter

value passed through parameter when called

7
New cards

arraylist

resizable array allowing for storage of a list of objects

8
New cards

array

ordered list of items of the same data type

9
New cards

binary search

Search a sorted array by repeatedly dividing the search interval in half.

10
New cards

block

section of code enclosed in curly braces

11
New cards

byte code

output for javac compiler (.class)

12
New cards

catch block

handles exceptions

13
New cards

checked exceptions

exceptions checked at compile time

14
New cards

class

blueprint for building methods

15
New cards

class contract

public methods and the constants of that class

16
New cards

concrete class

a class that can be instantiated directly

17
New cards

constructor

method used to create new object using keyword new

18
New cards

constructor chaining

calling on constructor from another constructor

19
New cards

deep copy

stores copy of objects value

20
New cards

equals

compares strings returns in they are equal

21
New cards

encapsulation

information hiding

22
New cards

exception

event interrupting the natural flow of a program

23
New cards

event driven programming

flow of the program determined by events

24
New cards

explicit casting

converting a larger data type to a smaller data type

25
New cards

finally clause

block of code used with try catch to make sure code is executed regardless of exceptions

26
New cards

for loop

loop with predetermined beginning end and increment

27
New cards

garbage collection

nvm reclaims memory no longer used

28
New cards

immutable

object whose state cannot be changed after its created

29
New cards

implicit casting

converting smaller data type to larger data type

30
New cards

inheritance

class inheriting behaviors and properties from another class uses keyword extends

31
New cards

overloading

multiple methods with the same names and different signatures

32
New cards

overriding

multiple methods with the same name and signatures

33
New cards

object

grouping of data(variables) that can be performed on data(methods)

34
New cards

null

default value assigned to reference type properties

35
New cards

no-arg

no arguments

36
New cards

package

a grouping of related types, classes, interfaces and subpackages

37
New cards

static

indicates a variable is allocated in memory only once during a programs execution

38
New cards

static field/ variable (class variable)

a field of the class instead of a field of each class object

39
New cards

doc comments

between /** and */

40
New cards

member access operator

“.”

41
New cards

access modfiers

public, protected, default,private

42
New cards

public

member is accessible from every class

43
New cards

protected

wishing package and subclasses

44
New cards

default

only in package

45
New cards

private

only in class

46
New cards

return statement

sends a value back from a method

47
New cards

no answer

void return type

48
New cards

test bench

separate program whose sole purpose is to check that a method returns correct output values for variety if input values

49
New cards

pass by reference

where formal parameter acts as alias for actual parameter

50
New cards

pass by value

invokes a method with parameters,value of argument is passed to the parameter

51
New cards

polymorphism

refers to determining which program behavior to execute depending on data types

52
New cards

polymorphism 2

using subtypes/subclasses in contexts where a related superclass is expected

53
New cards

4 pillars of oop

polymorphism,

abstraction, encapsulation, inheritance

54
New cards

no arg

no arguments

55
New cards

argument

input value to a method appears between parentheses and is known as a,….

56
New cards

action event

object notifying the program of the occurrence of a component related event such as a user pressing a button

57
New cards

action window toolkit

set of application program interfaces ( API s) used by Java programmers to create graphical user interface ( GUI ) objects, such as buttons, scroll bars, and windows

58
New cards

borderpane

divides layout area into five distinct regions: top, bottom, left, right, and center.

59
New cards

broadcast receiver

component that Responds to system-wide broadcast announcements.

60
New cards

button

JavaFX GUI component that represents a labeled button that a user can press to interact with a program.

61
New cards

color

an object represents a color in the red, green, blue color space..

62
New cards

command line arguments

are values entered by a user when running a program from a command line.

63
New cards

event handler

object that defines how a program should respond to specific events, such as an ActionEvent.

64
New cards

grid pane

A layout container in JavaFX that organizes nodes in a flexible grid of rows and columns.

65
New cards

HBOX

A layout container in JavaFX that arranges nodes in a single horizontal row.

66
New cards

VBOX

67
New cards

runtime heap

where objects created with key word new are stores, long term storage + slower

68
New cards

runtime stack

the memory structure that stores method calls and local variables, functioning in a last-in, first-out manner. fast + short term memory stores references

69
New cards

interface

class user need only use a class' public member methods, and need not directly access internal variables of the class.

70
New cards

javafx

is a set of packages and APIs for developing programs with graphical user interfaces, 3D graphics, etc.

71
New cards

try block

surrounds a section of code that may throw an exception

72
New cards

uml

Unified Modeling Language illustration of class templates and objects

73
New cards

method signature

name of method and description of its parameter

74
New cards

setter/muttator

method may modify ("mutate") the class' fields.

75
New cards

wrapper

Built-in classes there to augment (enhance) primitive type wrapper class wrapper objects and Strings are immutable

76
New cards

equality operator

==

77
New cards

primitive types

Basic data types in Java such as int, char, and boolean. These types represent simple values and are not objects.

78
New cards

.java(source file)

contains human readable code defining java structure then integrated into ide.

79
New cards

new keyword

used to create new instances of a class

80
New cards

auto boxing

converting primitive type to wrapper type

81
New cards

unboxing

converting wrapper to primitive type

82
New cards

abstract data type

data type whose creation and update are strained to specific well defined operations. a class can be used to implement adt.

83
New cards

shallow copy

copy of the reference variable value

84
New cards

dynamic binding

Occurs at runtime and is used to locate the most recently defined implementation of an overridden method

85
New cards

animationTimer

A timer used in graphical applications to control animation frame updates, allowing for smooth and consistent rendering.

86
New cards

Application

java program that uses javafx library to create gui w/ elements like buttons, labels, and scene

87
New cards

element

each item in a array

88
New cards

index

element location

89
New cards

enhanced for loop aka for each loop

for loop that iterates through each element in the array

90
New cards

method call

invocation of methods names causing method statement to execute

91
New cards

method definition

methods name and block of statements

92
New cards

void keyword

indicates a method that does not return a value.

93
New cards

void method

method with a void return type is often called a void method

94
New cards

modular development

process of dividing a program into separate modules that can be developed and tested separately and then integrated into a single program

95
New cards

incremental development

process of which a programmer writes, complies, and tests a small amount of code, then writes,compiles,and tests a small amount more (an incremental amount)

96
New cards

method stub

a method stub is a method definition whose statements have not yet written

97
New cards

unit testing

individually testing small parts of a unit or program usually method

98
New cards

test vector

unique set of input values

99
New cards

scope

the name of defined variable or method item is only visible to part of a program

100
New cards

field

variable declared within a class but outside any method is called a class member variable or field