Java

SERVELET INTERFACE01

What is Servlet interface?

The central abstraction in the Servlet API is the Servlet interface. All servlets implement this interface, either directly or , more commonly by extending a class that implements it.

SESSION

What is session?

A session refers to all the requests that a single client might make to a server in the course of viewing any pages associated with a given application. Sessions are specific to both the individual user and the application. As a result, every user of an application has a separate session and has access to a separate set of session variables.

WAR LIFE

What is the directory structure of a WAR file?

SERVELET CODE

How the typical servlet code look like ?

What is IncludeAction?

The IncludeAction class is useful when you want to integrate Struts into an application that uses Servlets. Use the IncludeAction class to include another resource in the response to the request being processed.

STRUTS CONFIG

What are the important tags of struts-config.xml ?

The five important sections are

STRUTS APP

What is the directory structure of Struts application?

The directory structure of Struts application :

SPRING

How many modules are there in Spring? What are they?

Spring comprises of seven modules. They are..

  • The core container:

The core container provides the essential functionality of the Spring framework. A primary component of the core container is the BeanFactory, an implementation of the Factory pattern. The BeanFactory applies the Inversion of Control (IOC) pattern to separate an application’s configuration and dependency specification from the actual application code.

  • Spring context:

The Spring context is a configuration file that provides context information to the Spring framework. The Spring context includes enterprise services such as JNDI, EJB, e-mail, internalization, validation, and scheduling functionality.

  • Spring AOP:

The Spring AOP module integrates aspect-oriented programming functionality directly into the Spring framework, through More >

What are Access Specifiers?

One of the techniques in object-oriented programming is encapsulation. It concerns the hiding of data in a class and making this class available only through methods. Java allows you to control access to classes, methods, and fields via so-called access specifiers..

Explain properties of sub-query.?

Properties of Sub-Query

A subquery must be enclosed in the parenthesis.

A subquery must be put in the right hand of the comparison operator, and A subquery cannot contain a ORDER-BY clause.

A query can contain more than one sub-queries.

What are types of sub-queries?

Single-row subquery, where the subquery returns only one row.

Multiple-row subquery, where the subquery returns multiple rows,.and

Multiple column subquery, where the subquery returns multiple columns