Bad to use very large strings? (Java)
<p>Are there any negatives to creating huge strings?  For instance, if we're reading in text from a potentially huge text file:</p>

<pre><code>while (scanner.hasNext()) {
  someString += scanner.next();
}
// do something cool with someString
</code></pre>

<p>Would processing the file line by line be (generally) a better solution, and why?</p>

<p>Thanks</p>
