KyaPoocha.com

Huge Collection of Interview Questions


Archive for August, 2006

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 »

How can I prevent the word “null” from appearing in my HTML input text fields when I populate them with a resultset that has null values? 

You could make a simple wrapper function, like then use it inside your JSP form, like  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 »

How does JSP handle run-time exceptions? 

One can use the errorPage attribute of the page directive to have uncaught run-time exceptions automatically forwarded to an error processing page. For example: ... 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 »

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 »

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 »

Difference between forward and sendRedirect? 

When you invoke a forward request, the request is sent to another resource on the server, without the client being informed that a different resource is going to... Read more »

What are the different scope valiues for the ? 

The different scope values for  are 1. page 2. request 3.session 4.application  Read more »

What is a output comment? 

A comment that is sent to the client in the viewable page source.The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the... Read more »

What is the future of JavaScript? 

The core language is filling out nicely with the versions implemented in Navigator 4 and Internet Explorer 4. There will certainly be some additions to the core... Read more »

What is session where it runs & what are different types of session handling? 

Session is a mean to maintain client identity, many client may request a single page further they may visit several pages how can you identify which client is accessing... Read more »

What are the different frameworks available In AJAX? 

A good framework is “Zephyr”. It is used with php and seems to be very easy to use. Prototype.JS Framework is available with detailed documentation,... Read more »

Who invented AJAX? 

Microsoft first implemented the XMLHTTPRequest object in Internet Explorer 5 for Windows as an ActiveX object. It is the term coined after this support. Asynchronous... Read more »

Will my .NET app run on 64-bit Windows? 

64-bit (x64) versions of Windows support both 32-bit and 64-bit processes, and corresponding 32-bit and 64-bit versions of .NET 2.0. (.NET 1.1 is 32-bit only). .NET... Read more »

Page 4 of 16« First...«23456»...Last »