title: Declaring a static FileWriter and FileReader
body: <p>I want to declare a static FileWriter and FileReader instance so I can use the same one throughout a large program. Eclipse tells me that an IOException must be thrown. How can I throw an exception for the declaration?  </p>
  
  <pre><code>static FileWriter fileWriter = new FileWriter(file, true);
  static BufferedWriter writer = new BufferedWriter(fileWriter);
  static FileReader fileReader = new FileReader(file);
  static BufferedReader reader = new BufferedReader(fileReader);
  </code></pre>
  
  <p>Thanks.</p>