title: What is ' :: ' double colon in Java? When should I use it?
body: <p>I'm just a beginner in Java. When should I use double colon?</p>
  <pre><code>import java.util.stream.*;
  
  class GFG {
  
      public static void main(String[] args)
      {
          // Get the stream
          Stream&lt;String&gt; stream= Stream.of(&quot;Geeks&quot;, &quot;For&quot;, &quot;Geeks&quot;, &quot;A&quot;, &quot;Computer&quot;, &quot;Portal&quot;);
  
          // Print the stream
          // using double colon operator
          stream.forEach(System.out::println);
      }
  }
  </code></pre>