‘Java 11’ is now just around the corner. Officially it is scheduled to release on September 25th. Hence its right time now to find out what does this new release has in its offering. In this article, we’ll take a quick look at the new features which will be available to us from this release. Before we dive into the features, here is the release schedule published by oracle. Schedule 2018/06/28 Rampdown Phase One (fork from main line) >> We are here 2018/07/19 All Tests Run 2018/07/26 Rampdown Phase Two 2018/08/16 Initial Release Candidate 2018/08/30 Final Release Candidate 2018/09/25 General Availability At the time of writing this article, JDK11 is in Rampdown phase one which means that overall feature set is frozen and no further JEPs will be targeted to this release. Features In total there are 17 JEP’s targeted for this release. For our better un...
Do you know about defaults methods which got added to Java language in JDK 8 release? If yes then that’s very good but if you don’t then you have a good news. In this article we will cover everything you need to know about default methods. What are default methods? Let’s take a look at existing stuff first. As of Java 7, Java interface declares method/s which define a contract. Any class that implements the interface must provide an implementation for each method defined by the interface or inherit the implementation from a superclass. Note: These methods declared in the interface are implicitly public so you need not mention it in the declaration. Let’s see an example: interface Orderable { int getProduct( int serialNumber); String getProductSpecification(); float getPrice(); float getDiscount(); } Example of class implementing above interface public class Television implements Orderable { ...