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...

CORE JAVA,Interview Questions

Difference between Error vs Exception in Java – Interview question

29 Sep , 2016  

1) As I said earlier, Main difference on Error vs Exception is that Error is not meant to catch as even if you catch it you cannot recover...

Collection Framework,CORE JAVA,Interview Questions

Array vs ArrayList in Java

29 Sep , 2016  

1) First and Major difference between Array and ArrayList in Java is that Array is a fixed length data structure while ArrayList is a vari...