title: Do we need to set a process variable to null in a finally block?
body: <p>If we have the following code:</p>
  
  <pre><code>Process p = null;
  BufferedReader br = null;
  
  try{
      p = Runtime.getRuntime().exec("ps -ef");
      br = new BufferedReader(new InputStreamReader(p.getInputStream()));
      //Do something with br
  } catch (Exception e) {
      //Handle catch block
  } finally {
      //Do we need to set p = null;
  }
  </code></pre>
  
  <p>Is the p = null required in a finally block or all the associated streams are closed by default?</p>