title: Objects having the same reference variable
body: <p>What happens if two objects of the same type have identical reference?</p>
  
  <p>For eg -</p>
  
  <pre><code>BufferedReader bufferedReader=null;
  try{
      bufferedReader = new BufferedReader(new InputStreamReader(a.openStream())); 
      while ((inputLine = bufferedReader.readLine()) != null) {
          //do something
      }
  
      bufferedReader = new BufferedReader(new InputStreamReader(b.openStream()));
      while ((inputLine = bufferedReader.readLine()) != null) {
          //do something
      }
  }
  </code></pre>
  
  <p><code>a</code> and <code>b</code> in this case are URLs. </p>
  
  <p>The code I have here is similar to <a href="http://docs.oracle.com/javase/tutorial/networking/urls/readingURL.html" rel="nofollow">this page</a>. In this case, will the buffered reader object first have the data of URL <code>a</code>, and later the data of <code>b</code>?</p>