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

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;

20 Cards in this Set

  • Front
  • Back

Illegal operations at run time can generate an _____.

exception

"We can attempt to recover from the exception and continue running the program." best describes _____.

Handling the exception

_____ are subclasses of Error or RuntimeException. _____ are any other exception.

Unchecked exceptions


Checked exceptions

For _____, It is not mandatory to use try and catch blocks to handle these exceptions.

unchecked options,

Three methods of exceptions you can call inside the catch block. (Return Value / Method name and argument list)

String / getMessage()


String / toString()


void / printStackTrace()

After a try block and its associated catch blocks, your may optionally add a _____ block.

finally

_____ will always be executed, whether an exception occurred or not.

finally

_____ releases resources associated with an open input stream.

close()

We specify whether we want to replace the contents or append to the current contents when we construct our _____ object.

FileOutputStream

A set of data values containing information about an item

A record

A special character or characters that separate one value from the next

A delimiter

_____ separates the line into the individual data values called _____.

Parsing


tokens

Airline company stores data in this way.


"AA123,BWI,SFO,235,239.5"


The delimiter is a _____.

comma

An Exception (as distinct from an exception) is _____.

an object

Besides Object all Exceptions and Errors are descended from the _____ class

Throwable (watch capital T)

What keyword is found in the header of a method that could detect an error and generate an appropriate exception?

throws (watch "s")

Most input- and output- related classes can be found in the package "java._____"

java.io

When we open a file for writing, the contents of the file, if any, will be _____.

deleted

When we open a file for appending, we will be _____.

adding data at the end of the file

Scanner file = new Scanner ( new file ("data.txt"));




The argument to the Scanner constructor is an _____.

anonymous object