Java SE 8 features

Java SE 8 Features Some of the important Java se 8 features are Please click on each link for detailed explanation lambda expressions functional interface foreach method in java.lang.iterable Default methods and Static methods Method References Remaining features will be updated soon ………

Continue reading

Java 8 Method References

Java 8 Method References Method References along with Lambda expressions gives a simple and understandable syntax for calling existing methods, constructors Consider the Example public class Employee { private String name; private int age; public Employee(String name, int age){ this.name=name; this.age=age; } public String getName() { return name; } public int getAge() { return age; } public void printEmp(){…

Continue reading

Java 8 Functional Interface

Functional Interface Functional Interface is an interface with exactly one abstract method. As we saw in earlier example java.lang.Runnable is a perfect example for Functional Interface, where only one method run () is declared. Similarly Actionlistener is another example. To instantiate these functional interface we can use these Lambda expressions instead of our old and…

Continue reading

JAVA 8 Lambda Expressions

Lambda Expressions As everyone knows Java is an Object Oriented Programming Language. Except the primitive data types everything it deals with Objects only. Java won’t deal with functions directly, they are part of class, and to invoke functions we will use object or class name based on the type of method. Coming to some functional…

Continue reading