On a sunny day of March Oracle released Java 8 which introduced a lot of new features. Among these, the Optional (along with Streams and Lambdas) is the most useful in my opinion, and in the next few minutes I am going to show you why.
[Read More]
The Observer Pattern
The Observer Pattern is one of the most commonly used patterns in software engineering and it is also one of my personal favorites. It’s quite useful and also easy to remember because we run into it literally every day. These are the main reasons why beginners usually start their learning...
[Read More]
Default and Static methods in interfaces
Java 8 came with a lot of improvements compared to Java 7, and one of them is interface enhancement. This means that since Java 8 we can write methods in interfaces with concrete implementation. Interfaces are no longer only responsible for defining the contract, they became a bit more complex....
[Read More]