Spring MVC Controllers

Spring MVC Controller provides simple but great way for creating Web Application using Java technology. Spring gives developer to ease of development using MVC design pattern. MVC stands for Mode-View-Controller, in this approach we can divide out software development into 3 layers namely Model, View, and Controller. Model layer is responsible for data related works, […]

Read More

New features in Java 10

Recently Oracle has announced the general availability of new features in Java 10 (JDK 10) on Mar 20, 2018. We can download Production-ready binaries of JDK 10 under the GPL from: Oracle [ http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html ] OpenJDK [ http://jdk.java.net/10/ ] Oracle has now shifted to a 6 months’ release pattern. Therefore, users will not be getting […]

Read More

Write to file in Java

This tutorial would be focusing on different ways of write to file using Java. Stream is a general mechanism of I/O in java. Stream provides sequential access of data. An input stream can be used by an application to read data. An output stream to write data. A file, network connection, arrays can act as […]

Read More

Java 8 flatMap examples

We would be looking at flatMap method in Java 8 streams and Optional. In our last tutorial we looked at map method in Java 8 stream example. Let us start with the examples 1. Flatten a List<List<String>> to List<String> using flatMap Here we have two lists, a list of front-end languages and a list of […]

Read More

command pattern class diagram

Command Pattern with Java examples

This pattern falls under the behavioral design pattern category. In this pattern, the information inside one request is mapped to a single object and then that object is used as required. It encapsulates a whole request as an object called ‘Command’. The ‘Command’ can be identified as a materialized method call. That object often contains […]

Read More

Bridge Design Pattern

What is Bridge Design Pattern?

Bridge Design Pattern falls under the structural design pattern category. This pattern focuses on a limitation in the concept of abstraction. In the context of Java, we use inheritance to develop the concept of abstraction. Several implementation deviations support to achieve the inheritance. However, this permanently binds the implementation to the abstraction limiting the flexibility. […]

Read More

Adapter Pattern Example

What is Adapter Design Pattern?

Adapter design pattern falls under the category of the structural design pattern. The main intention of the Adapter pattern is to make two incompatible interfaces compatible so that two different systems can inter-communicate. Two different systems have completely different interfaces to communicate with outside. The underlying classes or objects will not change but there is […]

Read More

Error: BeanDefinitionStoreException failed to read candidate component class

Following are some of the things that you can check: Cause 1: Compatibility between Java and Spring In this program, the use of Spring 3 has been done but Java 8 is compatible with Spring framework 4.0. The spring framework 4.0 have something known as functional interfaces which are compatible with Java 8. The […]

Read More