Study your flashcards anywhere!

Download the official Cram app for free >

  • 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

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/45

Click to flip

45 Cards in this Set

  • Front
  • Back
block
a sequence of statements within braces
break
exits inner most loop
conditional operator
?: shorthand for if else statement
escape sequence
used to represent certin character constants pg 7
identifier
used to name a variable or method
integral types
byte, char, short, int and long
javac
java compiler
labeled break statement
a break statement used to exit nested loop
method header
consists of a name, return type, and parameter list.
null statement
a statement that consists of a semi-colon itself
primative types
integer, floating-point, Boolean, and character
short-circuit evaluation
the process whereby if the result of a logical operator can be determined by examining the first expression, then the second expression is not evaluated
signature
the combination of the method name and the parameter list types
Virtual Machine
the byte code interpreter
aggregate
collection of objects stored in one unit
BufferedReader
used for line at a time input
call-by-reference
in many programming languages, means that the formal parameter is a reference to the actuall argument. This is the natural effect achieved in Java when call-by-value is used on reference types.
enhanced for loop
added in java 5, allows iteration through a collection of items
for(type var : collection){
}
immutable
object whose state cannot change. Specifically strings are immutable
accessor
a method that examines an object but doesn't change its state
aliasing
a special case that occurs when the same object appears in more than one role.
composite
the pattern in which we store two or more objects in one entity
encapsulation
the grouping of data and the operations that apply to them to form an aggregate while hiding the implementatiion of the aggregate
instance members
members declared without the static modifier
object-based programing
uses the encapsulation and information-hiding features of objects but does not use inheritance.
object-oriented programing
distinguished from object-based programming by the use of inheritance to form hierarchies of classes
private
not visible to non-class members
abstract class
class that cannot be constructed but serves to specify functionality of derived classes.
abstract method
a method that has no meaningful definition and is thus always defined in the derived class
adapter
a class that is typically used when the interface of another class is not exactly what is need. The adapter provides a wrapping effect, while changing the interface
anonymous class
a class that has no name and is useful for implementing shor function objects
base class
class on which the inheritence is based
boxing
creating an instance of a wrapper class to store a primitive type. In Java 5, this is done automatically
covariant arrays
derived is type compatible with base
decorator pattern
the pattern that involves the combing of several wrappers in order to add functionality
dynamic dispatch
a runtime decision to apply the method corresponding to the actual referenced object
generic classes
allow classes to specify type parameters and avoid significant amounts of typecasting
interface
a special kind of abstract class that contins no implementation details
leaf class
final class
local class
class defined inside a method, declared with no visibility modifier
nested class
class inside a class, declared with the static modifier
polymorphism
the ability of a referenced variable to reference objects of several different types. When operations are applied to the variable, the operation that is appropriate to the actual referenced object is automatically selected.
protected
accessible by the derived class and classes in the same package
type erasure
the process by which generic classes are rewritten as nongeneric classes
wrapper
a class that is used to store another type, and add operations that the primitive type either does not support or does not support correctly