Double Colon Operator in Java 8

Double Colon Operator is used as a method reference by replacing lambda expression. Syntax : className::methodName() className::methodName() Its applicable only in the place where lambda is applicable(means only for functional interface implementaions). Let’s analyze with the below program package com.kb.doublecolon;   public class RunnableEx1 {       static void show(){         […]

Share this article on