JavaFX Final Exam Definitions

5.0(1)
studied byStudied by 15 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Get a hint
Hint

Abstract Class

Get a hint
Hint
  • class that cannot be instantiated and

  • may contain abstract methods and concrete methods

  • used as class structure for subclasses to inherit from.

Get a hint
Hint

Abstraction

Get a hint
Hint
  • Separating implementation from use

  • Benefit is reducing complexity and increasing code reusability

Card Sorting

1/129

flashcard set

Earn XP

Description and Tags

JavaFX exam review flashcards.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

130 Terms

1
New cards

Abstract Class

  • class that cannot be instantiated and

  • may contain abstract methods and concrete methods

  • used as class structure for subclasses to inherit from.

2
New cards

Abstraction

  • Separating implementation from use

  • Benefit is reducing complexity and increasing code reusability

3
New cards

Abstract Method

  • a method with no body that must be implemented by subclasses.

  • delcared in abstract class or interface

4
New cards

Accessor/Getter

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

5
New cards

Actual Parameter

value passed through parameter when it is called

6
New cards

Aggregation

A 'has-a' relationship where the part can exist independently of the whole.

7
New cards

AnimationTimer

A JavaFX class used to create frame-based animations.

8
New cards

Application

The base JavaFX class that must be extended to create an app.

9
New cards

ArrayList

A resizable array allowing storage and manipulation of a list of objects

10
New cards

Array

ordered list of items of the same data type

11
New cards

Binary search

search a sorted array by repeatedly dividing the search interval into half

12
New cards

Block

section of code enclosed in braces {}.

13
New cards

BorderPane

A JavaFX layout pane with five regions: top, bottom, left, right, and center.

14
New cards

Button

A JavaFX control that triggers an action when clicked.

15
New cards

Byte code

output of the java complier javac(.class)

16
New cards

Catch block

handles/catches exceptions

17
New cards

Checked exception

An exception that must be either caught or declared at compile time

18
New cards

Class

A blueprint for building methods

19
New cards

Class contract

public methods and constants of that class

20
New cards

Code memory

Memory where byte code is stored during execution.

21
New cards

Color

A JavaFX class for defining colors.

22
New cards

Command-line arguments

Input values passed to main() when a program runs.

23
New cards

Comparable

An interface used for natural ordering of objects.

24
New cards

Concrete class

class that can be instantiated directly

25
New cards

Constructor

A special method used to create an object using the new keyword

26
New cards

Constructor chaining

Calling one constructor from another in the same class.

27
New cards

Deep Copy

stores copies of objects value.

28
New cards

Default

package-private only in same package

29
New cards

Dynamic Binding

Runtime decision to bind method calls to objects. (polymorphism) (overriding)

30
New cards

Equals

compares strings and returns true if they are equal

31
New cards

Encapsulation

  • information hiding

  • allows user to interact at a high level w/o knowing or seeing lower level details

  • having private instance variables and setters/getters helps achieve encapsulation

32
New cards

Event-driven programming

flow of the program determined by events

33
New cards

Exception

An event that disrupts the normal flow of execution.

34
New cards

Explicit casting

force the conversion of a larger data type to a smaller data type

35
New cards

Finally clause

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

36
New cards

FlowPane

A layout pane that wraps content in rows or columns.

37
New cards

For loop

loop with predetermined beginning end and increment

38
New cards

Garbage collection

JVM reclaims memory and no longer is used

39
New cards

GridPane

A layout pane that arranges nodes in a grid of rows and columns.

40
New cards

HBox

layout pane that arranges nodes horizontally.

41
New cards

Immutable

object whose state cannot be changed after creation (string, int)

42
New cards

Implicit casting

smaller data type converted to larger data type

43
New cards

Inheritance

a class inheriting properties and behaviors from another class

44
New cards

Insertion sort

comparison based sorting algorithm building the sorted array(or list) one element at a time

45
New cards

Instance

A single object created from a class.

46
New cards

Interface

class like structure containing constants and abstract methods

47
New cards

Interning

Storing only one copy of each distinct string value,shared by all references of that string

48
New cards

JavaFX

A Java library for building graphical user interfaces.

49
New cards

JVM

Java Virtual Machine, runs compiled Java byte code.

50
New cards

Lambda expression

A short way to write an anonymous method.

51
New cards

Layout

Arrangement of GUI components in a window.

52
New cards

Linear

linear search scans one item at a time

53
New cards

Linked list

A list of nodes where each node points to the next.

54
New cards

MouseListener

Interface for receiving mouse events like clicks.

55
New cards

MouseMotionListener

Interface for receiving mouse motion events.

56
New cards

Mutator/Setter

A method used to modify the value of a private field.

57
New cards

No-arg

A constructor with no parameters.

58
New cards

Null

A special value indicating no object.

59
New cards

Object

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

60
New cards

Overloading

multiple methods with the same name but different signatures

61
New cards

Overriding

multiple methods with same name and parameters as the base class

62
New cards

Package

used to group related classes

63
New cards

Pass-by-reference

  • Passing a reference to the actual object

  • where formal parameter acts as an alias for actual parameter

64
New cards

Pass-by-value

  • Passing a copy of the value

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

.

65
New cards

Polymorphism

using subclasses and subtypes where superclass is expected

66
New cards

Primitive

built in immutable data types like int, boolean, double.

67
New cards

Procedural programming

Programming with procedures or routines.

68
New cards

Private

Access modifier that restricts access to within the class.

69
New cards

Properties

fields+getters/setters

70
New cards

Protected

Access modifier that allows access within the same package and subclasses.

71
New cards

Public

Access modifier allowing access from anywhere.

72
New cards

Reference

A variable that holds the memory address of an object (refers to object)

73
New cards

Runtime heap

  • memory area where objects created with new are stored and managed by garbage collecter

  • objects, arrays, instance variables

74
New cards

Runtime stack

  • Memory that stores method calls and local variables.

  • activation record at runtime last-in first out fashion memory area

75
New cards

Scene

  • JavaFx Container holds everything that’s shown in the window.

  • You can only set one Scene per Stage at a time.

  • A Scene needs a root node (often a Pane) that holds other UI elements.

76
New cards

Scope

The region where a variable is accessible.

77
New cards

Selection sort

A sorting algorithm that repeatedly selects the minimum element.

78
New cards

Shallow copy

stores the references of the object to the original memory address

79
New cards

StackPane

A layout pane that stacks nodes on top of each other.

80
New cards

Stage

  • Think of the Stage as the window (like a browser or app window).

  • It’s the top-level container in JavaFX.

  • You get it in the start(Stage stage) method.

  • You set the Scene onto the Stage.

81
New cards

start()

The method in Application that sets up the UI.

82
New cards

Static

modifier used to describe variable shared by all instances of a class can be used without instantiation of its class

83
New cards

StringBuffer

A thread-safe, mutable sequence of characters, syncronized for string modification

84
New cards

StringBuilder

A non-thread-safe, mutable sequence of character, unsyncronized

85
New cards

Stub

A placeholder method or class not yet implemented.

86
New cards

super()

A call to the superclass constructor.

87
New cards

Swing

An older Java GUI toolkit.

88
New cards

this()

A call to another constructor in the same class.

89
New cards

Throws clause

Declares exceptions a method can throw.

90
New cards

Try block

A block that wraps code which may throw an exception.

91
New cards

UML

Unified Modeling Language; used for visualizing object-oriented designs.

92
New cards

VBox

A layout pane that arranges nodes vertically.

93
New cards

Wrapper

  • built in classes there to augment(enhance) primitive type wrapper class

  • immutable

94
New cards

== equality operator

Compares primitive values or object references.

95
New cards

no specifier

aka package-private

96
New cards

test bench

seperate program whose sole purpose is to check a method returns correct output values for variety of input values

97
New cards

ragged array

array with same number of rows different number of columns

98
New cards

index

element location in array

99
New cards

element

item in array

100
New cards

why use methods

allow for code reusability modular implementation