• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/40

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

40 Cards in this Set

  • Front
  • Back
object
Java objects model objects from a problem domain
class
Objects are created from classes. The class describes the kind of object; the objects represent individual instantiations of the class
method
We can communicate with objects by invoking methods on them. Objects usually do something if we invoke a method
parameter
Methods can have parameters to provide additional info for a task
signature
The header of a method is called its signature. It provides info necessary to invoke that method
type
Parameters have types. The type defines what kind of values a parameter can take
multiple instances
Many similar objects can be created from a single class
state
Objects have state. The state is represented by storing values in fields
method-calling
Objects can communicate by calling each other's methods
source code
The source code of a class determines the structure and behaviour (the fields and methods) of each object of the class
result
Methods may return info about an object via a return value
field
Fields store data for an object to use. Fields are also known as instance variables
comment
Comments are put into class source code to provide explanations to human readers
constructor
Constructors allow each object to be set up properly when it is first created
scope
The scope of a variable defines the section of source code from where the variable can be accessed
lifetime
The lifetime of a variable describes how long the variable continues to exist before it is destroyed
assignment
Assignment statements store the value represented by the right-hand side of the statement in the variable named on the left
method
Methods have two parts - a header and a body
accessor method
Accessor methods return info about the state of an object
mutator method
Mutator methods change the state of an object
conditional
A conditional statement takes one of two possible actions based upon the results of a test.
boolean expression
Booleans can have one of two possible values - true or false.
local variable
A local variable is a variable declared and used within a single method. It's scope and lifetime are limited to that of the method.
abstraction
Abstraction is the ability to ignore details of parts to focus attention on a higher level of a program
modularization
Modularization is the process of dividing a whole into well-defined parts which can be built and examined separately, and which interact in well-defined ways
classes define types
A class name can be used as the type for a variable. Variables that have a class as their type can store objects of that class
class diagram
The class diagram shows the classes of an application and the relationships between them. It gives info about the source code. It presents the static view of a program
object diagram
The object diagram shows the objects and their relationships at one moment in time during the execution of an application. It gives info about objects at runtime. It represents the dynamic view o a program
object references
Variables of object types store references to objects
primitive type
The primitive types in Java are the non-object types. Types such as int, boolean, char, double and long are the most common primitive types. Primitive types have no methods
object creation
Objects can create other objects using the new operator
overloading
A class may contain more than one constructor, or more than one method of the same name, as long as each has a distinctive set of parameter types
internal method call
Methods can call other methods of the same class as part of their implementation. This is called an internal method call
external method call
Methods can call methods of other objects using dot notation. This is called an external method call
debugger
A debugger is a software tool that helps in examining how an application executes. It can be useful to find bugs
collections
Collection objects are objects that can store an arbitrary number of other objects
loop
A loop can be used to execute a block of statements repeatedly without having to write them multiple times
iterator
An iterator is an object that provides functionality to iterate over all elements of a collection
null
The Java reserved word null is used to mean 'no object' when an object variable is not currently referring to a particular object. A filed that has not explicitly been initialized will contain the value null by default
array
An array is a special type of collection that can store a fixed number of elements