Java Functional Interface has become available for us since the introduction of new features in Java 8. Needless to say, how important functional Interfaces are in Java. If we start learning the most popular feature of Java 8 : 'The Lambda Expression', we should at least know the basics of Functional Interfaces. However, you will get more than basics from this article. Moreover, they also promote functional programming in Java. Without functional Interfaces, you can't imagine to write a code of Lambda Expression and Method References. In fact, introduction of default & static methods inside an interface in Java 8 itself has completely changed the definition of Interfaces in Java. Let's discuss our topic 'Java Functional interface' and other related concepts. How
Java 8
Lambda Expression In Java
Lambda Calculus is a big change in mathematical world which has been introduced in 1930. Because of benefits of Lambda Calculus slowly this concept started being used in the programming world. “LISP” is the first programming which used Lambda Expression. Simultaneously, some other languages are already using lambda expressions such as : C, C++, C# .Net, C Objective, Python, Ruby and obviously Java as well. However, our topic of discussion is 'Lambda Expression in Java'. Lambda Expression in Java is one of the crucial feature within the new features introduced in Java 8. Let's start discussing 'Lambda Expression in Java' and related concepts step by step. Why we use Lambda Expression in Java? The primary Objective of introducing Lambda Expression is to promote
Method Reference(::) Java 8
Method Reference is a wonderful feature introduced in Java 8. Apart from taking advantage of functional programming, one of the biggest advantages in using a Lambda expression is to minimize the lines of code. Similarly, Method Reference(::) Java 8 also minimizes lines of code even more than Lambda. However, we use both of them in the presence of functional interfaces only. Moreover, It is also a concise and simpler form of lambda expression. In this article, we will also learn how to change a Lambda expression into a method reference. Let's start discussing about 'Method Reference(::) Java 8' and it's related concepts. What is Method Reference(::)? As we have seen in Lambda expression topic that we use lambda expressions to implement Functional
Structure of JDK : Java 8 vs Java 9
Everyone working in Java technology uses JDK(Java Development Kit) software to develop & run the code. You can't write the code or develop an application in Java without installing the JDK software on your system. However, in this blog we will learn about the internal structure of JDK & compare the structures of Java 8 & Java 9. We have major changes in the structure of Java 9. Our title for this blog will be "Structure of JDK : Java 8 vs Java 9" JDK Folder This folder is the root directory of our java software containing sub-folders bin, lib, include etc. Needless to say, it is mandatory to have installed in our system before the start of any kind of development. bin