Java Ch 3

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

1/5

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:44 PM on 10/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

6 Terms

1
New cards

methods

-a series of statements that perform tasks

-keeps the main() method short and easy to follow

-makes code easy to read and re-usable

2
New cards

method declaration

-optional access specifiers (public, private, etc)

-return type for method (void, int, double, etc)

-set of parentheses (might contain data to be sent to the method)

3
New cards

access specifiers

-optional access specifiers (public, private, etc)

-any method that can be used without instantiation an object requires the static modifier

4
New cards

return type

-describes the type of data the method sends back to the calling method

-if no data is returned to the method, the return value is void

5
New cards

return statement

-causes value to be sent from called method back to calling method

-can be any type used in Java

6
New cards

overloading

-using one term to indicate diverse meanings

-writing multiple methods with the same name but different arguments

-complier understands meaning based on arguments used with method call