#java

Builder Design Pattern in Java #4

Reading Time: 2 minutes We have already discussed two of the Creational Design Pattern that is Singleton and Factory. Here, we just come up with another type of Creational Design Pattern that is Builder. What is Builder Design Pattern? Builder Design Pattern is a creational Design Pattern which is used to create the complex object. Its main purpose is to : 1) Segregate the object creation part in a separate Continue Reading

Java 11: Introduction to new String functions

Reading Time: 3 minutes It’s been a while since the release of Java 11 and with that, some new functions have been introduced on String. These functions provide additional functionalities and computations to be done on String then the existing one. Through the course of this blog, we will explore those functions one by one along with some examples.  These String functions have been added as a part of Continue Reading

Functional Java: Powerful Feature of Java8 – Lambda Expression

Reading Time: 2 minutes As we know that java8 has come up with a lot of new features Lambda Expression is one of them. It will help us in many ways like reduce the boilerplate code and make our code look clean and concise. Lambda Expression A Lambda expression is an anonymous function and is expressed as an instance of functional interfaces. Why we need Lambda Expression and how Continue Reading

How to handle URL Encoded Form Data in Spring REST?

Reading Time: 3 minutes Sometimes, our REST endpoint needs to consume data in the form of application/x-www-form-urlencoded or using multipart/form-data. The source of this data can probably be an HTML form. Now, the first question which should come to our mind is, what is exactly this application/x-www-form-urlencoded or using multipart/form-data and how can we let our spring application consume this. This blog will help you to find answers to Continue Reading

Java: back to basics.

Java Stream API tutorial

Reading Time: 3 minutes Java Stream API was one of the major features released with Java 8, that let you code in declarative style. It supports function-style operations on streams of elements, such as map, filter and various other transformations. Streams vs Collection It is a myth that Java Stream API have replaced Collections in Java. Most of the collections are a main source for the stream to work Continue Reading

Java 9: Getting started with Jshell in JAVA 9

Reading Time: 3 minutes Java Shell tool (JShell) has been introduced as a part of JAVA 9. It is a Read-Evaluate-Print Loop (REPL), which evaluates declarations, statements, and expressions as they are entered and immediately shows the results. The tool is run from the command line. In this blog, we will learn about this interactive tool that can be used for learning the Java programming language and prototyping Java Continue Reading