What's new in Java 8 (Aggregation of all the features in a single Post)
Hi, I am Malathi Boggavarapu working at Volvo Group and i live in Gothenburg, Sweden. I have been working on Java since several years and had vast experience and knowledge across various technologies. In this course we will learn the features of Java8. As you all know Java8 got major changes like Lambda expressions, Streams and also changes in Date API. So let's get started with Lambda expressions. Introduction to Lambda expressions Lets start with FileFilter example. public interface Filefilter{ boolean accept(File file); } public class JavaFileFilter implements FileFilter{ boolean accept(File file){ return file.getName().endsWith(".java") } } JavaFileFilter fileFilter = new JavaFileFilter(); File dir = new File("d:/tmp"); File[] files = dir.listFiles(fileFilter); 2) FileFilter fileFilter = new FileFilter(){ boolean accept(File file){ ...