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..
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...
The main difference between wait() and sleep() is that wait is an Object level method, whereas sleep() is a static...
All objects in Javascript have property called as prototype, the prototype is an object which has a constructor properties by default...
In the capturing phase, the browser checks to see if the element's outer-most ancestor (<html>) has an onclick...
Strict mode prevents certain actions and throws more exceptions. The statement “use strict” orders browser...
In Java, a static initializer can run code during the initial loading of a class and it guarantees that this code will...
HashSet is better than TressSet in almost every way. It gives O(1) for add(), remove() and contains() operations...