Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    Memory allocation? Every time a variable or object is declared, memory is allocated to store that item. That is done behind the scenes without programmer intervention. Would I expect anyone to put...
  2. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    Redundant? Error checking must be as frequent as the possibility of the error occurring. Typically, reading and writing to a file is done in loops, and the entire loop can be enclosed in a...
  3. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    Simply initialize it when you declare it.

    Scanner inputFile = null;

    You can learn more about why this is important and why it's necessary by reviewing the tutorial on Java variables.
Results 1 to 3 of 3