Java FINAL 1
Terms
undefined, object
copy deck
- return statement
- used to specify the value that a method returns to its caller
- edit-compile-test loop
- compile, run again to see whether the error has gone away
- parameter passing
- specifying expressions to be actual parameter values for a method when it is called
- parameter
- an input to a method
- editor
- a program for entering and modifying text, such as a Java program
- class
- defines the methods that you can apply to objects
- API documentation
- lists the classes and methods of the Java library
- logic error
- causes a program to take an action that the programmer did not intend
- method
- contains a collection of programming instructions that describe how to carry out a particular task
- encapsulation
- the process of hiding object data and providing methods for data access
- object reference
- describes the location of an object
- implicit parameter of a method call
- the object on which the method is invoked
- assignment operator
- (=) used to change the value of a variable
- objects
- entities in your program that you manipulate by calling methods
- local variable
- a variable whose scope is a block
- access specifier
- a keyword that indicates the accessibility of a feature, such as private or public
- accessor
- a method that accessses an object and returns some info about it, without changing the object
- double
- type that denotes floating-point numbers that can have fractional parts
- variable
- a storage location in the computer's memory that has a type, a name, and a contents
- return value
- the value returned by a method through a return statement
- documentation comments
- used to describe the classes and public methods of your programs; provide them for every class, ever method, every parameter, and every return value
- method
- sequence of instructions that access the data of an object
- mutator
- a method whose purpose is to modify the state of an object
- identifier
- the name of a variable, method, or class; composed of letters, digits, and underscore characters; cannot start wtih a digit
- overloaded
- a class with more than one method with the same name (but different parameter types)
- syntax error
- violation of the rules of the programming language
- method call
- object.methodName(parameters)
- arithmetic operators
- (+, -, *) used to combine numbers
- package
- a collection of classes with a related purpose (typically imported)
- main method
- public static void main(String[] args)
- string
- sequence of characters enclosed in quotation marks
- constructor
- used to create new objects by using the new operator, followed by a class name and parameters
- return value of a method
- a result that the method has computed for use by the code that called it
- compiler
- translates source code into class files that contain instructions for the Java Virtual Machine
- instance field
- a variable defined in a class for which every object of the class has its own value
- abstraction
- a process used to find the essential feature set for a class