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...
A Class is a template or a blue print of an Object to be created. An Object is an instance of a Class. A Class...
When we want to overload a method, we need to make sure that the method name remains same. But method...
During the run time the behavior of an Object can change based on its run time state. Due to this run time...
Since String objects are cached in a String pool, it makes sense to make the String immutable. The cached String...
Java supports Method overloading but does not support operator overloading. It would make the design more...