Main benefits of Collections Framework in Java are as follows...
Java provides throw keyword to throw an exception from a method or a static block. Java provides throws...
Checked Exceptions extend Throwable class, but they do not extend RuntimeException or...
String interning refers to the concept of using only one copy of a distinct String value that is Immutable...
Java provides finalize() method to perform any cleanup before Garbage Collection. This method is in Object...
Java has an automated process called Garbage Collector for Memory Management. It is a daemon in JVM that monitors...
In Java, there are no pointers. Memory management and allocation is done by JVM. Since memory allocation...
We can provide implementation in finalize() method to reference and unreferenced object. For an unreferenced...
Encapsulation :Nested classes increase encapsulation. Let say there are two top-level classes, Foo and Bar...
An Inner class in Java is non-static class. It is a type of Nested class that is defined in another class but not...
It is a behavioral design pattern. We can use it to create an outline for an algorithm or a complex operation...
Some of the main uses of Singleton design pattern in Java are as follows...
State design pattern is a behavioral design pattern that is use for defining the state machine for an object. Each state of...
Strategy pattern is very useful for implementing a family of algorithms. It is a behavioral design pattern...
We can define filters in JSP to intercept requests from a client or to change response from a server...
Both forward and sendRedirect are mechanisms of sending a client to another page. The main difference between these two are as follows...
We can use a Cookie in JSP by performing following steps...
We use Expression in a JSP to return a value and display it at a specific location. It is generally used for dynamically...
Every HTTP request comes back with a status code from the server. The important status codes in HTTP are as follows...
To implement an error-handling page in JSP, we first create a JSP with error page handling information. In most of the...