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

Multiple ssl certificates on Tomcat using SNI

In this tutorial, we will look at installing multiple SSL certificates on Tomcat using SNI. Tomcat 8.5.x allows you to install a separate SSL certificate for each virtual host in your tomcat installation. This works with a single IP because of the SNI feature in Tomcat 8.5.x and Java 8. (Java has implemented SNI since … Read more

Install Apache Tomcat Native

Steps to install apache tomcat native and its dependencies If you are using Apache Tomcat in production then it would be good to install Apache Tomcat native library as it has some optimizations for production use. Below are the steps to install it. The steps were performed on an AWS EC2 instance (Amazon Linux), but … Read more

AWS VPC Tutorial – Part II subnets

In this AWS VPC tutorial, we will look at how to create the VPC, public and private subnets, route table, and an internet gateway. AWS VPC Tutorial – Recap In the previous tutorial we saw an introduction to Amazon VPC and also looked at the key concepts in VPC. Here’s the diagram of what we … Read more