Let’s learn what is functional interface in java example? Functional interface in java Functional interface is one kind of an interface which has only one abstract method. Syntax: @FunctionalInterface interface interfacename { // one abstract method } NOTE: @FunctionalInterface is an annotation. This annotation is optional. Before Java 8 an interface had abstract method signature…

Read More Functional interface in java

Let’s learn what is instanceof in java? instanceof java instanceof operator is used to check whether the object is an instance of specified type. Type can be a class or a subclass or an interface. instanceof operator returns either true or false. It is also known as comparison operator. Let’s see instanceof java example. public…

Read More instanceof java