Servlet-JSP

What is JSESSIONID in Java? When does JSESSIONID gets created ?

25 Oct , 2016  

JSESSION id is a cookie which is used to manage session in Java web application. JSESSIONID is created by Web Container whenever a new session i...

Servlet-JSP

Difference between SendRedirect and Forward

25 Oct , 2016  

Now let’s see some difference between these two method of servlet API in tabular format.   Forward() SendRediret() When we use forward me...

Servlet-JSP

Application Server vs Web Server

25 Oct , 2016  

 Application Serversupportsdistributed transaction and EJB. While Web Server only supports Servlets and JSP. Application Server can contain web...

Uncategorized

When to use in web.xml

25 Oct , 2016  

<load-on-startup> is suitable for those servlet which performs time consuming jobs e.g. Creating Database Connection pool, downloading fil...

Servlet-JSP

Difference between GET and POST method in HTTP Protocol

25 Oct , 2016  

Most of the difference between GET and POST has been already discussed in there respective section. It all depends upon requirement when you wan...

CORE JAVA

What is the use of the finally block? Is finally block in Java guaranteed to be called? When finally block is NOT called?

15 Oct , 2016  

The finally block always executes when the try block exits. This ensures that the finally block is executed even if an unexpected exceptio...

CORE JAVA

Why there are two Date classes; one in java.util package and another in java.sql?

15 Oct , 2016  

A java.util.Date represents date and time of day, a java.sql.Date only represents a date. The complement ofjava.sql.Date is java.sql.Time,...

CORE JAVA

Explain marker interfaces?

15 Oct , 2016  

The marker interface pattern is a design pattern. used with languages that provide run-time type information about objects. It provides a mean...

CORE JAVA

When do you override hashCode() and equals()?

15 Oct , 2016  

hashCode() and equals() methods have been defined in Object class which is parent class for java objects. For this reason, all java objects...

CORE JAVA,Interview,Interview Questions

Why finalize() method should be avoided?

15 Oct , 2016  

We all know the basic statement that finalize() method is called by garbage collector thread before reclaiming the memory allocated to the obj...