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...
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...
Since String objects are cached in a String pool, it makes sense to make the String immutable. The cached String...
Both Cookie and Session are used during communication between Client and Server. The Client can disable...
Throwable class is the superclass of Exception and Error classes in Java...
To make an Object eligible for Garbage collection, just make sure that it is unreachable to the program in which...
Collection interface just specifies groups of objects known as elements. Each concrete implementation of a Collection...
Whenever an object is passed by value, it means that a copy of the object is passed. Even if changes are...
Enumeration interface is a read-only interface. It has better performance than Iterator. It is almost twice as fast...
In Java, Document Object Model (DOM) parser loads the whole XML into memory and creates a tree based...
We can print an array by using methods of Arrays class. We can either use Arrays.toString() method or we can...
A compile time constant is public static final variable. The public modifier is optional here. At compile time, they...