Reading Time: 2 minutes In this blog we will discuss about few methods introduced in java.lang.class. These methods help to find the NestHosts and NestMembers of the class.
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
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
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
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
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
Reading Time: 3 minutes Hi Folks! As part of this blog, we will explore how we can compile protocol buffers using maven. We assume the reader has the basic idea about protocol buffers and maven. Google developed Protocol Buffers for use in their internal services. It is a binary encoding format that allows you to specify a schema for your data using a specification language, like so: The snippet defines the Continue Reading