Since JSP pages are dynamically compiled into servlets, the programmers can easily make updates to the presentation layer code...
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...
The volatile keyword guarantees global ordering on reads and writes to a variable. This implies that every thread...
A compile time constant is public static final variable. The public modifier is optional here. At compile time, they...
We can use memory management related methods provided in java.lang.Runtime class to get the free memory...
In Java, Stack and heap are memory areas available to an application. Every thread has its own stack. It is used...
Following are the different states of a Thread in Java..
A scheduler is a program that is the implementation of a scheduling algorithm to manage access of processes...
As such both process and thread are independent sequences of execution...
Concurrency is the ability of a program to execute several programs simultaneously. This is achieved by distributing computations...
There are certain downsides to Multithreading...
Main advantages of Multithreading are...
Java provides support for Multithreading. In a Multithreading environment, one process can execute multiple...