ApplicationContext in Spring can be implemented in one of the following three ways...
Inversion of Control (IOC) principle is the base of Spring framework. It supports dependency injection in an application...
Spring application can be configured by an XML file. This file contains information of classes and how these classes...
Spring-webmvc module is also known as Web-servlet module. It is based on Web Model View Controller pattern...
Spring provides support for developing web application by using Web module. This module is built on application...
To upload a file by JSP we can use <input type=”file”> in the Form data being passed from HTML...
There is a built-in request object in a JSP that provides methods to read Form data. Some of the methods are as follows...
In simplest form we can write logger statements or System.out.println() statements to write messages to log files...
We can pass information from one JSP to another by using implicit objects. If different JSP are called in same session...
Some of the main differences between include Directive and include Action are as follows...
JSP has following lifecycle stages...
We get following advantages by using JSP in web architecture...
If we suspect that our application is stuck due to a Deadlock, then we just take a thread dump by using the command specific...
The Key object should be immutable so that hashCode() method always return the same value for that object...
To make an object immutable follow these two rules. One, do not use any setter methods that can change the fields...
In general, Java provides a default constructor with each class. But there are certain cases when we want to...
In Java all the interaction takes place between Object instances. To create an Object instance, JVM needs...
Information hiding is OOPS concept. In Java you can use encapsulation to do Information hiding. An object...
As the name suggests, a package contains a collection of classes. It helps in setting the category of a file...
When we want to cast a Sub class to Super class, we use Upcasting. It is also known as widening. Upcasting is always allowed in Java...