Java Methods and Modularity

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards focusing on Java methods, modularity, static and instance members, signatures, parameters, return values, control flow, and value semantics.

Last updated 2:34 AM on 9/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Modularity

Writing code in smaller, more manageable components or modules, and then combining those modules into a cohesive system.

2
New cards

Method

A named group of statements that defines the behaviors or functions for objects.

3
New cards

Object's Behavior

Refers to what an object can do or what can be done to it.

4
New cards

Non-static (Instance)

Classification of variables and methods that are part of an individual object rather than shared by the class.

5
New cards

Static

Classification of variables and methods that are part of a class rather than an object, shared by all objects of that class instead of copied into each object.

6
New cards

Driver Class

The class containing the main method, which serves as the beginning and ending point of a program run.

7
New cards

Method Signature

A structure consisting of the method name and the ordered, possibly empty, list of parameter types.

8
New cards

Formal Parameters

The variables and parameter types defined in a method header.

9
New cards

Void Keyword

Specifies that no value is returned when a method completes its execution.

10
New cards

Return Keyword

Used inside a method to send out a value as the result back to its caller.

11
New cards

Procedural Abstraction

A practice allowing a programmer to use a method by knowing what it does without needing to know how it was written.

12
New cards

NullPointerException

An exception thrown when attempting to call a method or access an instance variable using a null reference.

13
New cards

Void Methods

Methods that do not produce return values and cannot be called as part of an expression.

14
New cards

Overloaded Methods

Multiple methods within the same class that share the same method name but have different method signatures.

15
New cards

Value Semantics

Call-by-value mechanism where formal parameters receive copies of actual parameter values, preventing changes to primitive types or String variables inside the method from altering original caller variables.

16
New cards

java.lang Package

The Java package containing the Math library, which provides built-in mathematical methods such as Math.abs and Math.sqrt.

17
New cards

Control Flow in Method Calls

The execution path where calling a method causes execution to jump into that method, execute its statements, and jump back to the calling location once finished.

18
New cards

Method Parameter Auto-Casting Rule

Java's automatic type conversion when calling methods that casts an int argument to a double, but refuses to cast a double argument to an int.

19
New cards

Instance Method Call Syntax

Calling a non-static method through an object variable name using the dot operator.

20
New cards

Static Method Call Syntax

Calling a static method using the class name with the dot operator, or calling it directly without dot notation if called from within the same class.