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

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;

9 Cards in this Set

  • Front
  • Back
In If / Then block are { braces required?
NO but sun considers it good practice to always use { braces.
A switch statement must evaluate to what data types?
char, byte, short, int, or enum.
Default expression in a Case will ALWAYS run?
FALSE, Default runs if no match is found. Also the default can be placed in any position of the cases.
The key difference between a While and Do/While is?
The Do/While is guaranteed to run one time and While could never run if condition is false on first check.
What are the two types of For loops?
Basic ( for(Expression; Condition; Itteration) and Enhanced ( for(String s: arrayOfStrings) )
In labeled loops the Label appears after the loop declaration?
FALSE. The label MUST appear before the initialization of the Loop construct. (i.e. foo: for(int i: iArray) { if (i.isBig()) { continue foo; } }
The Finally block in a Try/Catch statement will ALWAYS execute barring a System.exit() or System crash; True/False?
TRUE
What happens if in a Try/Catch block the Catch block is not declared?
This is perfectly legal behavior and the Try block will pass the exception to the calling block. Also if the catch statement is not declared you MUST declare a finally statement.
What is the Exception Hierarchy?
Object>>Throwable>>Exception And Error. Expection>>RuntimeException>>ect... Error>>ect....