Java 8 has several solutions to support evolution of interfaces. In the last post I explained about one such solution, default methods. Today I’ll be explaining another solution: static methods in Interfaces.
So far I have discussed some of the “code changers” brought about by Java 8 such as lambda-expressions, variable scope changes, and method references. Today I will be explaining another cool feature in Java 8 called default methods.
Hi there!
If you are already familiar with Java and if you do not have much time to spare on reading, the stuff I write about in my blog might interest you.You are more than welcome to point out any mistakes that I have made in my posts, because after all I am a newbie…
During my internship at WSO2, I came across WSO2’s Jaggery framework. This open-source framework enables Developers to write all aspects of their web application; the front-end UI, the back-end logic and even the communication and persistence mechanisms…
In Java, a class can contain several types of members; variables, methods or even other classes. Having other classes as members inside a particular class is often referred to as “nesting classes”. Here, the class written within is called the nested class, and the…
If you have done programming with java, I’m sure by now you must have realized the importance of the java collections framework (JCF). A collection is a data structure which contains and processes a set of data. Examples of collections data structures are lists, sets, queues…
Want to have JavaScript code in your Java 8 application? I might be able to help you with that! :)
You probably are aware of JavaScript in terms of scripting web browsers. The JavaScript engines have access to the HTML document object model…
In the previous post, I discussed what lambda-expressions are. In this post, I will explain the concept of method references brought about in Java 8.
Sometimes there is already a method that you’d like to pass on to some other code. Of course, you could…
In a previous post, I have described what a functional interface is. In the same post, I explained that lambda-expressions can be used at any place a functional interface is used and gave an example for doing so.
In today’s post I will discuss one Concurrency Utility Enhancement provided by Java 8.
Java 8 includes a class called LongAdder in java.util.concurrent.atomic package to yet again support atomic operations on a…