Skip to main content

Posts

Showing posts from June, 2019

Lambda Expression And Stream API Operations In Java

LAMBDA EXPRESSION:               Lambda expression is the most advanced features of java and it introduced in java 8.It basically instance of the functional interface(which interface contain only one abstract method).In lambda expression,there is only abstract functions are implemented.functional interfaces are implement only one abstract method but it can contain any number of default and static method. Runnable and Comparable are the example of functional interface. STREAM API:            A stream is the sequence of processed data source which supports various operations such as filter, map, reduce, find, match etc.            In-stream the aggregate operations and the bulk operations processing convenient and fast.               Before stream API, for a simple operation like comparing with a string with the element of a string array, we must iterate the total array and compare the String with each element of the array and get the result.                In th

Spring Boot Project Set Up Using Maven And STS

                    In this topic, we discuss, how to set up a new spring boot project and how to run this in the server and how to generate war in command prompt. Here we use STS(Spring tool suite) to build the project. We can also build through Eclipse IDE . For build project, through the eclipse, we need to install external plugins from eclipse market place. We discuss all this in detail but for now, firstly using Spring tool suite let's start building our project. So without wasting any time let's begin. REQUIERMENTS: 1.STS or Eclipse IDE with Spring tools plug-in 2.Jdk -8 or higher 3.Maven 3 or higher STEP BY STEP PROCESS: 1.Open The Spring tool suite: 2.Select a work directory where you want to build your project: 3.Step up the project name: -Set the project name. -Set the packaging as war because we build a web based application. -Set groupId(Group Id is the unique identification of your project among all project.It's