J2EE Interview Questions
By Ramakrishna on Apr 4, 2009 in J2EE Interview Question
Q) What is authentication ?
Rep) The process that verifies the identity of a user,
device, or other entity in a computer system, usually
as a prerequisite to allowing access to resources in a
system. The Java servlet specification requires three
types of authentication-basic, form-based, and
mutual-and supports digest authentication.
Q) What is authorization?
Rep) The process by which access to a method or resource is
determined. Authorization depends on the determination
of whether the principal associated with a request
through authentication is in a given security role. A
security role is a logical grouping of users defined
by the person who assembles the application. A
deployer maps security roles to security identities.
Security identities may be principals or groups in the
operational environment.
Q) What is authorization constraint
Rep) An authorization rule that determines who is permitted
to access a Web resource collection.
Q) What is B2B
Rep) B2B stands for Business-to-business.
Q) What is backing bean
Rep) A JavaBeans component that corresponds to a JSP page
that includes JavaServer Faces components. The backing
bean defines properties for the components on the page
and methods that perform processing for the component.
This processing includes event handling, validation,
and processing associated with navigation.
Q) What is basic authentication
Rep) An authentication mechanism in which a Web server
authenticates an entity via a user name and password
obtained using the Web application’s built-in
authentication mechanism.
Q) What is business logic
Rep) The code that implements the functionality of an
application. In the Enterprise JavaBeans architecture,
this logic is implemented by the methods of an
enterprise bean.
Q) What is business method
Rep) A method of an enterprise bean that implements the
business logic or rules of an application.
Q) What is callback methods
Rep) Component methods called by the container to notify
the component of important events in its life cycle.
Q) What is caller
Rep) Same as caller principal.
Q) What is caller principal
Rep) The principal that identifies the invoker of the
enterprise bean method.
Q) What is cascade delete
Rep) A deletion that triggers another deletion. A cascade
delete can be specified for an entity bean that has
container-managed persistence.
Q) What is CDATA
Rep) A predefined XML tag for character data that means
“don’t interpret these characters,” as opposed to
parsed character data (PCDATA), in which the normal
rules of XML syntax apply. CDATA sections are
typically used to show examples of XML syntax.
Q) What is certificate authority
Rep) A trusted organization that issues public key
certificates and provides identification to the
bearer.
Q) What is client-certificate authentication
Rep) An authentication mechanism that uses HTTP over SSL,
in which the server and, optionally, the client
authenticate each other with a public key certificate
that conforms to a standard that is defined by X.509
Public Key Infrastructure.
Q) What is comment
Rep) In an XML document, text that is ignored unless the
parser is specifically told to recognize it.
Q) What is commit
Rep) The point in a transaction when all updates to any
resources involved in the transaction are made
permanent.
Q) What is component contract
Rep) The contract between a J2EE component and its
container. The contract includes life-cycle management
of the component, a context interface that the
instance uses to obtain various information and
services from its container, and a list of services
that every container must provide for its components.
Q) What is component-managed sign-on
Rep) A mechanism whereby security information needed for
signing on to a resource is provided by an application
component.
Q) What is connector
Rep) A standard extension mechanism for containers that
provides connectivity to enterprise information
systems. A connector is specific to an enterprise
information system and consists of a resource adapter
and application development tools for enterprise
information system connectivity. The resource adapter
is plugged in to a container through its support for
system-level contracts defined in the Connector
architecture.
Q) What is Connector architecture
Rep) An architecture for integration of J2EE products with
enterprise information systems. There are two parts to
this architecture: a resource adapter provided by an
enterprise information system vendor and the J2EE
product that allows this resource adapter to plug in.
This architecture defines a set of contracts that a
resource adapter must support to plug in to a J2EE
product-for example, transactions, security, and
resource management.
Q) What is context attribute
Rep) An object bound into the context associated with a
servlet.
Q) What is context root
Rep) A name that gets mapped to the document root of a Web
application.
Q) What is conversational state ?
Rep) The field values of a session bean plus the transitive
closure of the objects reachable from the bean’s
fields. The transitive closure of a bean is defined in
terms of the serialization protocol for the Java
programming language, that is, the fields that would
be stored by serializing the bean instance.
Q) What is CORBA
Rep) Common Object Request Broker Architecture. A
language-independent distributed object model
specified by the OMG.
Q) What is create method
Rep) A method defined in the home interface and invoked by
a client to create an enterprise bean.
Q) What is credentials
Rep) The information describing the security attributes of
a principal.
Q) What is CSS
Rep) Cascading style sheet. A stylesheet used with HTML and
XML documents to add a style to all elements marked
with a particular tag, for the direction of browsers
or other presentation mechanisms.
