Walkins Openings in India & Interview Questions

Walkins in Mumbai, Bangalore, Chennai, Delhi, Gurgaon, Pune


‘JSP Interview Questions’ - KyaPoocha.com

What are implicit objects? List them? 

Certain objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated... Read more »

Explain the life-cycle mehtods in JSP? 

The generated servlet class for a JSP page implements the HttpJspPage interface of the javax.servlet.jsp package. Hte HttpJspPage interface extends the JspPage interface... Read more »

How do I prevent the output of my JSP or Servlet pages from being cached by the browser? 

You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute... Read more »

How do I use a scriptlet to initialize a newly instantiated bean? 

A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically,... Read more »

What is better approach for enabling thread-safe servlets and JSPs? SingleThreadModel Interface or Synchronization? 

Although the SingleThreadModel technique is easy to use, and works well for low volume sites, it does not scale well. If you anticipate your users to increase in... Read more »

What is the difference b/w variable declared inside a declaration part and variable declared in scriplet part? 

Variable declared inside declaration part is treated as a global variable.that means after convertion jsp file into servlet that variable will be in outside of service... Read more »

Is there a way to execute a JSP from the comandline or from my own application? 

There is a little tool called JSPExecutor that allows you to do just that.  Read more »

Explain the directory structure of a web application. 

The directory structure of a web application consists of two parts. A private directory called WEB-INF A public resource directory which contains public resource... Read more »

What are the most common techniques for reusing functionality in object-oriented systems? 

The two most common techniques for reusing functionality in object-oriented systems are class inheritance and object composition. Class inheritance lets you define... Read more »

Why would you want to have more than one catch block associated with a single try block in Java? 

Since there are many things can go wrong to a single executed statement, we should have more than one catch(s) to catch any errors that might occur.  Read more »

What does the JSP engine do when presented with a JavaServer Page to process? 

The JSP engine builds a servlet. The HTML portions of the JavaServer Page become Strings transmitted to print methods of a PrintWriter object. The JSP tag portions... Read more »

What are the lifecycle phases of a JSP? 

JSP page looks like a HTML page but is a servlet. When presented with JSP page the JSP engine does the following 7 phases. 1. Page translation: -page is parsed,... Read more »

What is a translation unit? 

JSP page can include the contents of other HTML pages or other JSP files. This is done by using the include directive. When the JSP engine is presented with such... Read more »

What is the query used to display all tables names in SQL Server (Query analyzer)? 

select * from information_schema.tables  Read more »

How many types of JDBC Drivers are present and what are they? 

There are 4 types of JDBC Drivers JDBC-ODBC Bridge Driver Native API Partly Java Driver Network protocol Driver JDBC Net pure Java Driver  Read more »

What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()? 

request.getRequestDispatcher(path): In order to create it we need to give the relative path of the resource, context.getRequestDispatcher(path): In order to create... Read more »

What is the difference between directive include and jsp include? 

<%@ include>: Used to include static resources during translation time. JSP include: Used to include dynamic content or static content during runtime.  Read more »

What is the difference between RequestDispatcher and sendRedirect? 

RequestDispatcher: server-side redirect with request and response objects. sendRedirect : Client-side redirect with new request and response objects.  Read more »

How do I find whether a parameter exists in the request object? 

boolean hasFoo = !(request.getParameter(”foo”) == null || request.getParameter(”foo”).equals(””)); or boolean hasParameter = request.getParameterMap().contains(theParameter);... Read more »

What is JSP? 

JSP is a technology that combines HTML/XML markup languages and elements of Java programming Language to return dynamic content to the Web client, It is normally... Read more »

Page 3 of 5«12345»
  • Subscribe

      Get Latest Walkins in your INBOX, enter your email address:


  • Walkins by Location


  • Walkins by Skills