Java 9 JShell

Java 9 JShell Command line tool. The Java 9 JShell tool allows you to write and evaluate Java expressions, statements and declarations on the command line via an interactive tool. To start JShell type in ‘jshell’ on the command line. If that does not work, make sure you have installed JDK 9 or 10 and … Read more

Java 9 project coin language changes

The Java 9 project coin language changes include diamond with anonymous classes, private methods in interfaces, removing ‘_’ as a single character identifier, @SafeVargs on private instance methods and effectively final variables as resources in try-wth-resources statement. 1. Diamond with anonymous classes Prior to Java 1.6, constructors did not have inferred type inference. This code … Read more

Java 9 Stack Walking API

What is the Stack Walking API The Java 9 Stack walking API provides an efficient way to walk the jvm stack. The existing methods Thread::getStackTrace() and Throwable::getStackTrace return an array of all stack frames and they do that by grabbing all the frames in the stack. This is performance intensive. The implementation is also allowed … Read more

Java 9 Enhancements to Stream and java.util.Arrays

In this tutorial we will cover the Java 9 enhancements to Stream and java.util.Arrays. The most important enhancements to stream are the takeWhile, dropWhile, ofNullable, and iterate methods. The enhancement to Arrays has been the new equals and mismatch method that allow comparing subset of arrays. We will look into the details of the new … Read more

Java 9 Collection factory and java 10 copyOf methods

The Java 9 collection factory methods and java 10 copyOf methods add functionalities to create immutableCollections. Before we discuss those methods, let us look at three concepts in collections i.e. View Collection, Unmodifiable collection and unmodifiable view collection. What is a View Collection? A view collection does not store elements but instead relies on a … Read more

Java 9 Reactive Streams

Java 9 Reactive Streams contain a set of interfaces that follow the reactive streams specification. This article is a part of series of articles that contain the features in Java 9. here is the list of changes. Java platform module system JShell – Interactive command line tool Reactive Streams Factory method for Collections Enhancements in … Read more

Java 9 Platform Module system

Java 9 Platform Module System Java 9 Platform Module System introduces the concept of modules that allow breaking up a project into logical parts. Modules provide better configuration and greater encapsulation. A module consists of classes and interfaces and a configuration file known as module-info.java. Module A can access only those members of Module B … Read more

Download Java Source Code

If you are looking to download java source code then this links will help you : Download Java Source Code for JDK 10 https://download.java.net/openjdk/jdk10/ri/openjdk-10_src.zip Download Java Source Code for JDK 9 https://download.java.net/openjdk/jdk9/ri/openjdk-9_src.zip Download Java source code for JDK 8 https://download.java.net/openjdk/jdk8u40/ri/openjdk-8u40-src-b25-10_feb_2015.zip

Spring Beanfactory and ApplicationContext

Spring BeanFactory and ApplicationContext are interfaces responsible for configuring a Spring application. BeanFactory is the main interface for accessing the spring container and acts as a central registry of all components. BeanFactory along with its subinterfaces are also responsible for implementing dependency injection. An ApplicationContext extends the functionality of a BeanFactory and provides additional methods. … Read more

Java CompletableFuture

What is Java CompletableFuture? Java CompletableFuture is used when you have a task that needs to be run asynchronously and you want to wait for the task to complete and obtain a value OR to force a task to complete. It also allows chaining multiple tasks together or executing a task after a few other … Read more