title: BufferedReader and InputStreamReader in Java
body: <p>I recently started with Java and want to understand a java module of a large app. I came across this line  of java code: </p>
  
  <pre><code>String line = (new BufferedReader(new InputStreamReader(System.in))).readLine();
  </code></pre>
  
  <p>What does this java code do. Is there a C/C++ equivalent of this?</p>