Flyweight Design Pattern

Flyweight design pattern falls under the structural design pattern category. Sometimes, our applications hit slow performances. This can be due to various reasons. Instantiating many amounts of heavy objects can be one of the very common reasons for the low system performance. This can be rectified by the flyweight pattern successfully. Flyweight pattern introduces a […]

Read More

Java 8 Lambda expressions

Java 8 – Lambda expressions

Let us look at lambda expressions, which is one of the most important features introduced in java 8. Before we look at lambda expressions, let us first understand the functional interfaces and anonymous classes. What is functional interface? Functional interface means an interface that has exactly one abstract method. They have only one functionality to […]

Read More

Rest APi interview Questions

REST API Interview Questions

Here is a list of top 15 REST API interview questions and answers.  These questions would provide you with basic information about both simple and advanced topics. What is REST API ? REpresentational State Transfer, or REST for short, is an architectural style for building distributed, client-server systems. By providing a small set of useful […]

Read More

proxy design pattern overview

Proxy Design Pattern with examples

Introduction to Proxy Pattern Proxy design pattern falls under the structural design pattern category and it is one of the most frequently used pattern in software development. This pattern helps to control the usage and access behaviours of connected resources. A separate object called ‘proxy’ helps to build the connection between the client and the […]

Read More

What is Visitor Design Pattern?

Visitor is a behavioural type of design pattern. Although this is not a very popular design pattern due to its narrow applicability, it can be carefully used to resolve complex behavioural situations. This pattern is useful when an object structure contains different kinds of operations to use in different situations. Elements of an object structure […]

Read More

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