Method Reference in Java 8

In the place of an Anonymous class we can use Lambda expression but Sometimes, the lambda expression does nothing but call an existing method. In those cases, it’s often clearer to refer to the existing method by its name. Method references enable you to do this; A method reference is a shorthand syntax for a lambda expression that executes only One method. We can Use it if we need to declare fields or additional methods. Syntax :   Object :: methodName   Note: In the place of an Anonymous class we can use Lambda Expression, In the place of a Read More …

Share Knowledge

Why Java 8 ?

With this new release, Java 8 is introducing a completely new JVM with full packed of some really exciting features at both the JVM and programming language level. There are literally dozens of new features that make java even better than previous versions and improvement about performance and optimized coding level with some functional programming features. These additions are under-the-hood improvements either at the compiler, JVM or help-system level. Lambda Expression and Virtual Extension Methods are the highlighting feature of Java 8 which is the implementation of Lambda expressions and supporting features to the Java programming language and platform. To Read More …

Share Knowledge

Working with Tomcat7 Maven Plugin

In this article we are going to create a simple web application with the help of maven-archetype-webapp and will learn how to “Working with Tomcat7 Maven Plugin”. I hope you have read my previous article on how to integrate maven plugin with eclipse IDE and also how to create a standalone project with maven. The motto behind this article is just to demonstrate a maven based web-application. After creating the web application, you can deploy the same on any web server that you might have configured in eclipse or outside eclipse. While developing web applications, we frequently need to test Read More …

Share Knowledge

Maven Repository and its different types(Part-2)

code-adda Maven Repository and its different types

Previous article, getting-started-with-maven (part-1), mainly focused on the introductory part of maven. In this article, we will get to know Maven Repository and its different types and how they work. Let’s get started. During project development, we need various artifacts say dependencies, libraries, plugins etc. To manage such dependencies across various terminal in an organization is a tedious task and requires lot of effort and time. Such dependencies should be managed at one place to avoid any future problem in project development. Maven repository is an answer to all the problems related to dependency management. Remember, in maven all the configurations Read More …

Share Knowledge

Getting Started With Maven – Part 1

Getting Started With Maven code-adda

Getting Started With Maven Any project development comprises of various build processes that are often repetitive and involves lot of manual activities. Such activities involves downloading dependencies, source code compilation, packaging, testing, deployment and generating documentation etc. This may be ok for small projects but becomes tedious for large projects to keep track of each build processes. This is where build automation or build tools comes handy. Popular build tools for java are Ant, Maven, Gradle etc. Today I am going to talk about Maven, one of the most widely used build tool or project management tool in java ecosystem. We Read More …

Share Knowledge