In Java 8, PermGen space on the heap is replaced by Metaspace on native memory. The main difference between them is, Metaspace by default auto increases its size up to the memory provided by the Operating System, while PermGen always had a fixed maximum size. So, there will be fewer chances to get the OutOfMemoryError. When PermGen was initially introduced there was no dynamic class loading/unloading, so when the class was loaded it was there

Read more 0

What is Spring Boot? Spring is a popular Java-based framework for building web and enterprise grade application. spring framework provides various modern features via its various projects. Spring team created Spring Boot project to create standalone, production-ready spring based executable applications. Most of the spring boot application requires minimal spring configuration. Why Spring Boot? In a traditional monolithic approach for developing web/RESTful application, a WAR is created and deployed on a web server like: Tomcat,

Read more 0

Spring Initializr- Spring Boot, bootstrap your first REST API application

Spring Boot is been created for Rapid development. In this article will go through the steps to create first basic REST API using Spring Boot. We will see the more advanced version of this application in upcoming articles on microservices. Prerequisite: 1. Maven 3.X 2. Java 1.8/1.7 Getting Started - Step by Step guide The best way to bootstrap your Spring Boot projects is to use Spring Initializr It allows you to bootstrap various type

Read more 0

In mathematical logic, a predicate is commonly understood to be a Boolean-valued function P: X→ {true, false}, called the predicate on X. Informally, a predicate is a statement that may be true or false depending on the values of its variables. It can be thought of as an operator or function that returns a value that is either true or false. For example, predicates are sometimes used to indicate set membership: when talking about sets,

Read more 0

Java has always been an Object Oriented programming language, it means we can't have a function without its class. Other programming languages like C++, PHP, Python, JavaScript and many more, where we write functions and use anywhere, all these languages support functional programming along with Object Oriented programming. Java introduced Functional interface & Lambda Expressions in Java 8, to leverage functional programming to reduce verbosity. What is functional Interface? A Functional Interface is an interface

Read more 1

Lambda Expression

Lambda expression is a concise representation of an anonymous function which can be passed as an argument to a method or stored in a variable. We call it anonymous function because it isn't associated with a particular class like a method does and it doesn't have a explicit name like a normal method. Like any regular method a lambda has a list of parameters, body, return type and list of exceptions which can be thrown.

Read more 0