Android & Java Blog

Javapapers is an Android and Java blog, passionately published by Joe for more than a decade. It is the industry's top blog, with millions of views to its credit. Welcome!

Recent Articles

  • Java Marker Interface

    Marker interface is used as a tag to informĀ a message to the Java compiler so that it can add special behaviour to the class implementing it ...

    May 29th, 2008

  • What happens if you call destroy() from init() in java servlet?

    destroy() gets executed and the initialization process continues. It is a trick question in servlets interview. In java servlet, destroy() i ...

    May 27th, 2008

  • Java Final Keyword

    A java variable can be declared using the keyword final. Then the final variable can be assigned only once. A variable that is declared as f ...

    May 22nd, 2008

  • Access Modifiers In Java

    Access modifiers specifies who can access them. There are four access modifiers used in java. They are public, private, protected, no modife ...

    May 22nd, 2008

  • How to avoid IllegalStateException in java servlet?

    The root cause of IllegalStateException exception is a java servlet is attempting to write to the output stream (response) after the respons ...

    May 19th, 2008

  • What is servlet mapping?

    Servlet mapping specifies the web container of which java servlet should be invoked for a url given by client. It maps url patterns to servl ...

    May 14th, 2008

  • Difference between HttpServlet and GenericServlet

    javax.servlet.GenericServlet Signature: public abstract class GenericServlet extends java.lang.Object implements Servlet, ServletConfig, jav ...

    May 14th, 2008

  • What is preinitialization of a java servlet?

    In the java servlet life cycle, the first phase is called ‘Creation and intialization’. The java servlet container first creates ...

    May 14th, 2008

  • Difference between forward and sendRedirect

    forward Control can be forward to resources available within the server from where the call is made. This transfer of control is done by the ...

    May 13th, 2008

  • JSP Comments

    There is only one type of JSP comment available by JSP specification. JSP Comment Syntax: <%-- comment --%> This JSP comment tag tells ...

    May 13th, 2008