title: Do lambda expressions have any use other than saving lines of code?
body: <p>Do lambda expressions have any use other than saving lines of code?</p>
  
  <p>Are there any special features provided by lambdas which solved problems which weren't easy to solve? The typical usage I've seen is that instead of writing this:</p>
  
  <pre><code>Comparator&lt;Developer&gt; byName = new Comparator&lt;Developer&gt;() {
    @Override
    public int compare(Developer o1, Developer o2) {
      return o1.getName().compareTo(o2.getName());
    }
  };
  </code></pre>
  
  <p>We can use a lambda expression to shorten the code:</p>
  
  <pre><code>Comparator&lt;Developer&gt; byName =
  (Developer o1, Developer o2) -&gt; o1.getName().compareTo(o2.getName());
  </code></pre>