Tutorials | Eklavya Online

Tutorials

Spring Integration Channels:Lab-1

Here we will understand publisher and subscriber interaction b/w channels using java project with scenarios. Pom.xml Spring integration channel registration spring-integration-channels.xml Main container loader class which will load all the beans Startup.java Here If we run Sratup.java class then we have to enter message which means we are publishing message using console which is producer …

Spring Integration Channels:Lab-1 Read More »

Prototype Design Pattern

Prototype Pattern says that cloning of an existing object instead of creating new one and can also be customized as per the requirement. This pattern should be followed, if the cost of creating a new object is expensive and resource intensive. Advantage of Prototype Pattern The main advantages of prototype pattern are as follows: It reduces …

Prototype Design Pattern Read More »

Observer Pattern

Observer Pattern An Observer Pattern says that “just define a one-to-one dependency so that when one object changes state, all its dependents are notified and updated automatically”. The Memento pattern is also known as Dependents or Publish-Subscribe. Benefits: It describes the coupling between the objects and the observer. It provides the support for broadcast-type communication. …

Observer Pattern Read More »

Java 9 changes for Collections

n this post, we are going to discuss one more Java SE 9 New Feature: “Factory Methods for Immutable List, Set and Map” with some simple and suitable examples. Java SE 8: Empty Immutable List, Set and Map In Java SE 8 and earlier Versions, if we want to create an empty Immutable or Unmodifiable List, we …

Java 9 changes for Collections Read More »

SQL Intermediate Interview Questions

1: Explain the meaning of ‘index’. Indexes help retrieve information from the database faster and with higher efficiency. In other words, it’s a method that enhances performance and there are 3 types of indexes: Clustered – reorders the table and searches for information with the use of key values Non-clustered – maintains the order of the table Unique – …

SQL Intermediate Interview Questions Read More »

Spring Integration Channels Pollable:Lab-2

Subscribable channels don’t buffer messages and deliver the messages to any and allsubscribers. Pollable channels, can buffer messages and deliver the message to a singlesubscriber. If there are more than one subscribers, it picks the first subscriber and skipsthe others. In this step, you replace the subscriber channel with a pollable channel to seethe effect …

Spring Integration Channels Pollable:Lab-2 Read More »

Builder Design Pattern

Builder Pattern says that “construct a complex object from simple objects using step-by-step approach” It is mostly used when object can’t be created in single step like in the de-serialization of a complex object. Advantage of Builder Design Pattern The main advantages of Builder Pattern are as follows: It provides clear separation between the construction and …

Builder Design Pattern Read More »

State Pattern

State Pattern A State Pattern says that “the class behavior changes based on its state”. In State Pattern, we create objects which represent various states and a context object whose behavior varies as its state object changes. The State Pattern is also known as Objects for States. Benefits: It keeps the state-specific behavior. It makes …

State Pattern Read More »

Java 9 Private methods in Interfaces

Java 9 onwards, you can include private methods in interfaces. Before Java 9 it was not possible. Interfaces till Java 7 In Java SE 7 or earlier versions, an interface can have only two things i.e. Constant variables and Abstract methods. These interface methods MUST be implemented by classes which choose to implement the interface. // …

Java 9 Private methods in Interfaces Read More »

SQL Basic Interview Questions

RDBMS is one of the most commonly used databases to date, and therefore SQL Skills are indispensable in most of the job roles. In this SQL Interview Questions article, I will introduce you to the most frequently asked questions on SQL (Structured Query Language). This article is the perfect guide for you to learn all …

SQL Basic Interview Questions Read More »