What is different between web server and application server? A web server is responsible to handle HTTP requests from client browsers and respond to HTML response. A web server understands
What is a Web Service? A Web Service can be defined as an application component for communication or say exchanging information between two applications over the network. Web services basically
Core Java Interview Questions and Answers Core Java is the starting point of any Java interview. Whether you are fresher or experienced in java, having a strong grip on Core
Overview Jsoup is an open source Java library, It used to parse data from HTML Documents. It provides a very convenient API for extracting and manipulating data, using the best
Overview Singleton pattern is a design solution which application to have only one instance of any class in Java Virtual Machine. Singleton Patterns are used where we need only one
In this article we are going to see how you can integrate JAX-RS Jersey with JAXB (Java Architecture for XML Binding) to create RESTful services that produce XML streams. As
What is Spring? Spring is an open source development framework for Enterprise Java.Spring framework core concepts are “Dependency Injection” and “Aspect Oriented Programming”.Spring framework can be used in normal java
Why Java is platform independent? We can run the same Java Program in any Operating System. For example, We can write java program in Windows and run it in Mac
Oracle PL/SQL – DROP FUNCTION Statement This article will help you to understand “Oracle PL/SQL – DROP FUNCTION Statement” with example and description. The DROP FUNCTION statement drops a standalone
Oracle PL/SQL – ALTER FUNCTION Statement This article will help you to understand “Oracle PL/SQL – ALTER FUNCTION Statement” with example and description. Oracle PL/SQL – ALTER FUNCTION statement explicitly
Oracle PL/SQL – Create Function Example This article will help you to understand “Oracle PL/SQL – Create Function” with examples and description. Oracle PL/SQL – CREATE FUNCTION statement is used
Overview The Stream API offers easy filtering, counting, and a mapping of collections, as well as different ways to get slices and subsets of information out of them. It also
In RESTful web services (JAX-RS) @QueryParam annotation will be used to get the query parameters from the URL, Observe carefully, i am saying we will retrieve the parameters only not
The @Path annotation identifies the URI path template to which the resource responds, and is specified at the class level of a resource. The @Path annotation’s value is a partial
What is a Web Service A Web Service is can be defined by following ways: is a client server application or application component for communication. method of communication between two
Java 9 brings a new improved string, which in most cases, will reduce String memory consumption to half. Why Compact Strings required in Java 9? Strings in Java are internally
Overview Java 9 is adding a new way of getting information about current and any spawned processes. The primary goal of the developers is, to make it easier for you
Overview Convenience Factory Methods for Collections defines several factory methods for conveniently creating instances of unmodifiable collections and maps with small numbers of elements. It is to ease the pain
We have discussed Java 9 Modularity and Module System. Refer for more details. Here we will discuss how to create module in Java 9 with Eclipse IDE, Listed steps will
Introduction to Java 9 Modularity and Jigsaw Project How do you think about Module? As lines of code? As bits and bytes? UML diagrams? Maven POMs? A code base consists
Java 9 Private Methods in Interface This article will help you to understand “java 9 private methods in interface.” Java 9 is going to release with Private Method in Interface.
Can You Crack The Code Riddle Mystery 3 In this article “Can You Crack The Code Riddle Mystery 3”, you will find very interesting Riddle Mystery. A Number Lock has
we will learn Spring MVC Form handling without using database. Here, we will use @Controler, @RequestMapping and @ModelAttribute annotations. To display the input form, we are going to use <form:form>
We can inject dependency of another class object into current bean using setter injection.In such case, we use property element. Here, our scenario is Employee HAS-A Address. The Address class
Spring Setter Injection with Collection We can inject collection values by setter method in spring framework. There can be used three elements inside the property element. It can be: list
Spring MVC is mostly used with Spring for any web application development. It is very powerful and nice layered architecture for flow and configuration. It is very flexible to integrate
JShell has a great collection of commands, descriptions available from the ‘/help’ command. However, sometimes the terse descriptions given in JShell itself are not quite enough. So, here is a
Java 8 introduced new APIs for Date and Time to address the shortcomings of the older java.util.Date and java.util.Calendar. 1. Java 8 Date Time API Packages Java 8 Date Time
Inject collection values by constructor We can inject collection values by constructor in spring framework. There can be used three elements inside the constructor-arg element. It can be: list set
Constructor Injection with Dependent Object This article contains detailed description with example on “Constructor Injection with Dependent Object” topic. Whenever we have HAS-A relationship between the classes, instance of dependent
Selection Sort Algorithm Selection sort is a sorting algorithm, specifically an in-place comparison sort. It has O(n2) time complexity, making it inefficient on large lists, and generally performs worse than
Quick Sort Algorithm Quick sort (sometimes called partition-exchange sort) is an efficient sorting algorithm. It is a commonly used algorithm for sorting. When implemented well, it can be about two
Matchsticks Puzzles – Set 3 This article contains Matchsticks Puzzles – set 3 3 Squares and 2 Unused matchsticks In a given matchsticks diagram 3 squares, 2 matchsticks are unused.
Java 9 Features Java 9 comes with a rich feature set. Although there are no new language concepts in Java 9 Features, new APIs and diagnostic commands will definitely be
Matchsticks Puzzles – Set 2 This article contains Matchsticks Puzzles – set 2 Change Swimming Direction of Fish to Opposite In a given matchsticks diagram of Fish, Move 3 matchsticks
Merge Sort Algorithm Merge sort algorithm is an efficient, comparison-based sorting algorithm. Most implementations produce a stable sort, which means that the implementation preserves the input order of equal elements
Insertion Sort Algorithm Insertion sort algorithm is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. It is much less efficient on
Linear or Sequential Search Algorithm Linear or sequential search algorithm is a method for finding a target value within a list. It sequentially checks each element of the list for
Serialization: Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization: Deserialization is a mechanism to convert back to object from the byte stream.
Spring Boot which is build upon Spring foundation itself, takes convention over configuration to the next level by reducing the development time many-fold, enabling your projects up and running as
Spring is the most popular and innovative community for the Java developers. They have changed the way how to build the enterprise applications and how to manage them. Spring Boot
The Spring IoC container also supports dependency injection by setter method, which is the preferred method of dependency injection in Spring. The property subelement of bean is used for setter
This article will explore a specific type of DI technique called Constructor-Based Dependency Injection within Spring. We can inject the dependency by constructor.The constructor-arg subelement of bean is used for
Enum in Java is a keyword. It is used to represent a fixed number of predefined values. Enumeration (Enum) in Java was introduced in JDK 1.5. Enums are lists of
Factory Method is known as a creational pattern. As the term present it is used to create something. To create objects such that it kept decoupled from implementor. It is
Comparator interface lies in java.util package. It is used to short object in defined order i.e. sort two objects based on defined criteria. The compare(Object o1, Object o2) method of
Comparable interface lies in java.lang package. It is used to sort object in their natural order, i.e. number by numeric order, text in lexical order, dates in chronological order. Similarly,
The hashCode() method of objects is used when you insert them into a HashTable, HashMap or HashSet. An object’s hash code allows algorithms and data structures to put objects into
equals() method in Java to check if two objects are equal. Two objects are considered to be equal when they are identical (contain the same data) or in other words
Primitive Data Type Primitive means “very basic”. It is simple and normal types. Value of primitive is stored in memory location or memory location is given to variable. For example
We are using System.out.print() function in our daily programming to print data or debug code. The System class contains several useful class fields and methods. System class is final and
Rename Trigger This Article will help you to understand “RENAME Trigger” with example and it’s detailed description. ALTER TRIGGER statement used to RENAME the trigger. Example We will create table
Drop Trigger DROP TRIGGER statement drops a database trigger from the database. Example We will create table “demo_data”. Then create trigger “trg_drop_example” on demo_data table. We will check the trigger
Disable ALL Trigger “Disable ALL Trigger” Article will help you to understand “Disable ALL Triggers of the table” with examples and it’s detailed description. ALTER TABLE statement used to disable
Disable Trigger This Article will help you to understand “Disable Trigger” with examples and it’s detailed description. By Default, trigger status is ENABLED. Sometimes we will need to DISABLE trigger
Enable ALL Trigger This Article will help you to understand “Enable ALL Trigger of the table” with examples and it’s detailed description. Sometimes you will found that all triggers of
Enable Trigger This Article will help you to understand “Enable Trigger” with examples and it’s detailed description. Sometimes you will found that the trigger is DISABLED and you need to
INSTEAD OF DML Trigger Example This Article will help you to understand “INSTEAD OF DML trigger statement” with examples and it’s detailed description. An INSTEAD OF trigger is A DML
Oracle PL/SQL After DELETE Trigger Example Overview This Article will help you to understand “AFTER DELETE TRIGGER statement” with After DELETE Trigger Example and it’s detailed description. This statement specifies
Oracle PL/SQL Before DELETE Trigger Example Overview This Article will help you to understand “BEFORE DELETE TRIGGER statement” with Before DELETE Trigger Example and it’s detailed description. This statement specifies
Oracle PL/SQL After UPDATE Trigger Example Overview This Article will help you to understand “AFTER UPDATE TRIGGER statement” with examples and it’s detailed description. This statement specifies that Oracle will
Oracle PL/SQL Before UPDATE Trigger Example Overview This Article will help you to understand “BEFORE UPDATE TRIGGER statement” with examples and it’s detailed description. This statement specifies that Oracle will
Binary Search Algorithm Binary search algorithm requires already sorted collection. Binary search, (also known as half-interval search, logarithmic search, or binary chop) is a search algorithm that finds the position
Oracle PL/SQL After INSERT Trigger Example Overview This Article will help you to understand “AFTER INSERT TRIGGER statement” with examples and it’s detailed description. This statement specifies that Oracle will
Oracle PL/SQL Before INSERT Trigger Example Overview This Article will help you to understand “BEFORE INSERT TRIGGER statement” with examples and it’s detailed description. This statement specifies that Oracle will