J2EE Interview Questions & Answers

Showing 10 of 330 questions | Page 20

Technical interview questions and answers are important for any J2EE Interview because companies want candidates who understand enterprise Java components, servlets, JSP, JDBC, MVC frameworks, and server-side development. J2EE is widely used for building scalable and secure enterprise applications, making it a key topic in Java-based interviews. Companies like TCS, Infosys, Wipro, Cognizant, and Accenture often include J2EE questions in their placement tests and technical rounds to evaluate backend development skills. This guide provides fully solved J2EE interview questions with clear explanations, helping freshers and job seekers build strong fundamentals. Preparing these questions will help you perform confidently in technical interviews, project discussions, and Java-based coding assessments.

Showing 10 of 330 questions

191. What is message-driven bean ?

An enterprise bean that is an asynchronous message consumer. A message-driven bean has no state for a specific client, but its instance variables can contain state across the handling of client messages, including an open database connection and an object reference to an EJB object. A client accesses a message-driven bean by sending messages to the destination for which the bean is a message listener.

192. What is message producer ?

An object created by a JMS session that is used for sending messages to a destination.

193. What is mixed-content model ?

A DTD specification that defines an element as containing a mixture of text and one more other elements. The specification must start with #PCDATA, followed by diverse elements, and must end with the "zero-or-more" asterisk symbol (*).

194. What is method-binding expression ?

A Java Server Faces EL expression that refers to a method of a backing bean. This method performs either event handling, validation, or navigation processing for the UI component whose tag uses the method-binding expression.

195. What is method permission ?

An authorization rule that determines who is permitted to execute one or more enterprise bean methods.

196. What is mutual authentication ?

An authentication mechanism employed by two parties for the purpose of proving each other's identity to one another.

197. What is namespace ?

A standard that lets you specify a unique label for the set of element names defined by a DTD. A document using that DTD can be included in any other document without having a conflict between element names. The elements defined in your DTD are then uniquely identified so that, for example, the parser can tell when an element should be interpreted according to your DTD rather than using the definition for an element in a different DTD.

198. What is naming context ?

A set of associations between unique, atomic, people-friendly identifiers and objects.

199. What is naming environment ?

A mechanism that allows a component to be customized without the need to access or change the component's source code. A container implements the component's naming environment and provides it to the component as a JNDI naming context. Each component names and accesses its environment entries using the java:comp/env JNDI context. The environment entries are declaratively specified in the component's deployment descriptor.

200. What is normalization ?

The process of removing redundancy by modularizing, as with subroutines, and of removing superfluous differences by reducing them to a common denominator. For example, line endings from different systems are normalized by reducing them to a single new line, and multiple whitespace characters are normalized to one space.
Questions and Answers for Competitive Exams Various Entrance Test