Unit 3 - Methods Flashcards
modular
a style of programming that involves a module(s) as the structure of a program
constant
a variable that stays the same and cannot be changed throughout the program (e.g. Math.PI)
all capital letters are used to help others know its a constant
final
a keyword used for a constant or a method that stays the same throughout the program; used to define a constant
static
a keyword used to define a value that stays the same throughout the class; for global variables; above main method
method
a set of instructions that are carried out when it is called; a subprogram
Java API
Application Programming Interface; already-made class
parameter
a variable in a method definition; just a placeholder in the brackets
argument
the value that is sent to the method to process when it is called
scope
where a particular variable or method is accessible in a program
casting
converting one data type to another
concatenation
joining two strings together
enumeration
giving predefined constants a number value (e.g. JAN = 1; FEB = 2, MAR = 3, APR = 4)
stack
a data structure that refers to pushing on and/or popping off an item from a program execution; follows LIFO (Last In First Out); a way of storing your methods in the RAM