• 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/31

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;

31 Cards in this Set

  • Front
  • Back

Block

Code between a pair if { }

Outside block / outer block

Contains another block

Inside block / inner block

Contained within another block

Nested

Describes the state of an inner block

Comes into scope

Describes what happens to a variable when it becomes usable

Goes out of scope

Describes what happens to a variable when it ceases to exist at the end of the block in which is declared

Redeclare a variable

Is to attempt to declare it twice (an illegal action)

Overrides

Another with the same name when it takes precedence over the other bearable

Shadowing

Action that occurs when a local variable hides a variable with the same name that is further away in scope

Closer in scope

Describes the status of a local variable over others that it shadows

Overloading

Involves using one term to indicate diverse meanings, or writing multiple methods in the same name but with different arguments

Ambiguous

Situation is one in which a compiler cannot determine which method to use

Reference

Is an objects memory address

"this" reference

Reference to an object that is passed to any objects non-static class method

Class methods

Static methods that do not have a "this" reference, because they have no object associated with them

Class variables

Static variables that are shared by every instantiation of a class

NaN

acronym for Not a Number

Package

Is a library of classes

Library of classes

A folder that provides a convenient grouping for classes

java.lang

Package is implicitly imported into every Java program

Fundamental classes

Basic classes contained in the java.lang package that are automatically imported into every program you write

Optional classes

Reside and packages that must be explicitly imported into your programs

Wildcard symbol

* ; the symbol used to indicate that it can be replaced by any set of characters. And it Java import statement you use a wildcard symbol to represent all the classes in a package

Composition

Describes the relationship between classes when an object of one class is a data field within another class

has-a relationship

Relationship based on composition

Nested classes

Classes are contained in other classes

Top-level class

Containing class in nested classes

static member class

Type of nested class that has access to all static methods of its top-level class

Nonstatic member classes / inner classes

Nested classes that require an instance

Local classes

Type of nested class that are local to a block of code

Anonymous classes

Nested, local classes that have no identifier