Double Colon Operator in Java 8
- 4th Sep 2014
- 8
- 34897
- Double colon operator in java with an example how to use double colon operator in java with an example
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(){ […]