Default Method in Interface Java 8 Core Java java by devs5003 - May 14, 2021November 14, 20230 As we are aware that till JDK 7 we couldn't include implemented method inside an interface. In other words, there was no provision to have a method body inside a method of an Interface. But for those who are reading Default Methods for the first time it will be very surprising. The surprise is that we can now include an implemented method inside an Interface. Therefore, we can also have an implemented method inside an interface. Here, we are talking about default method in interface. The most use of default method in interface is to provide additional functionality to a given type without breaking down the existing implemented classes. In this article, we are going to take a deeper look on
Functional Interface In Java Examples Java 8 Core Java java by devs5003 - April 26, 2021March 1, 20243 Functional Interface in Java 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 Interface in Java, 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 'Functional Interface in Java' and
Lambda Expression In Java java Core Java Java 8 by devs5003 - April 19, 2021February 15, 20240 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
Structure of JDK : Java 8 vs Java 9 java Core Java Java 8 by devs5003 - June 28, 2020February 18, 20240 Structure of JDK : Java 8 vs Java 9 Everyone working with 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. In this article, 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 as compared to older versions. Our title for this article will be "Structure of JDK : Java 8 vs Java 9" Let's discuss each component of JDK step by step: JDK Folder This folder is the root directory of our java software containing sub-folders bin, lib, include