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...
We can specify both init-param and context-param in web.xml file. ..
A Session is always stored at the Server side. In JSP, session is a built-in object in JSP container...
We can use following options to delete a Cookie in JSP...
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...
Java Classloader is the part of the Java Runtime Environment (JRE) that loads classes on demand into Java Virtual Machine (JVM)...
In Java, a HashMap works on the concept of hashing...
In Java, most implementations of Map interface provide a constructor to create copy of another map. But the copy method is not synchronized...
In a Map we can lookup for a value by using a distinct key. In a Map with reverse view and lookup, even the values...
In Collection interface remove(Object o) method is used to remove objects from a Collection...
In a Java collection UnsupportedOperationException is thrown when the requested operation is not supported by the collection...
IdentityHashMap class has one tuning parameter for performance improvement: expectedMaxSize...
EnumSet is a specialized implementation of Set...
In a HashMap collection it is very important for a key object to implement hashCode() method and...
Differences between Fail-fast and Fail-safe iterators are as follows...
Remove() method in HashMap uses logic similar to the one used in get() method. First we locate the correct...
An ArrayList is a newer class than a Vector. A Vector is considered a legacy class in Java. The differences are...