What's new with Java 8?

Hello! I hope you had a good day and an awesome week. 😊 Java is a widely-used programming language. Java is fast, secure and reliable. From Java 6 to Java 7, much didn’t change, but Java 8 is a massive step forward. So many things changed and has made easier in Java 8. There are so many changes to look at but in this post, I’ll go through some major changes. ‘default’ and ‘static’ methods in interfaces In previous versions of Java, interface methods can’t have a method body or a method implementation. This has changed in Java 8. In Java 8, interface methods which are declared using ‘default’ and ‘static’ keywords can have a method implementation. This introduce multiple inheritance. At first, Java didn’t support multiple inheritance due to the ‘Diamond Problem’. Diamond Problem is an ambiguity which occurs when a class inherits from two classes which has the same method. In the below diagram, we can see that B and C have inherited from A and D has inherited from both...