Computer Knowledge

Java Enterprise and Web Technologies

2,279 Questions

Java enterprise and web technologies questions focus on J2EE architecture, web services like SOAP, and servlet functionalities. These topics frequently appear in IT officer and specialist scale examinations. Regular practice ensures familiarity with enterprise application components.

HttpServlet methodsSOAP and web servicesEJB architecture rolesJ2EE componentsJSP servlet callingUDDI concepts

Java Enterprise and Web Technologies Questions

Multiple choice technology programming languages
  1. Use an asterisk for the path property

  2. Set the "default" property of the mapping to "true"

  3. Set the "unknown" property of the mapping to "true"

  4. Set the "missing" init-param of the ActionServlet to the mapping's path

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Setting the unknown attribute to true on a Struts `` mapping designates it as the default action handler. If an incoming request path does not match any other defined action mapping, Struts routes the request to this action. Other options, such as using asterisks or default properties, are not supported in Struts configuration.

Multiple choice technology programming languages
  1. SessionFacade

  2. Filter

  3. Front controller

  4. Back controller

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

ActionServlet implements the Front Controller pattern, centralizing request handling and routing. It intercepts all requests, delegates to Actions, and manages the overall application flow.

Multiple choice technology programming languages
  1. Session , request

  2. Page, request, session

  3. Page, request, session, application

  4. request, session, application

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Struts 1, the scope attribute of an action mapping specifies where the ActionForm bean is stored. The only two valid scopes supported for this attribute are request and session. Other scopes like page and application are not valid options for managing form beans in Struts configuration.

Multiple choice technology programming languages
  1. Small

  2. Any

  3. Average

  4. Verysmall

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The Apache Struts framework is designed to be highly scalable and flexible, making it well-suited for web applications of any size, from small projects to large-scale enterprise systems. It does not restrict developers to a specific application size, rendering the other options incorrect.

Multiple choice technology programming languages
  1. WorkWeb 2

  2. WebWork 2

  3. Jstruts 2

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Struts 2 framework was originally developed as WebWork 2 and was later merged with the Struts 1 framework to create Struts 2. The WebWork framework was renamed and integrated, making WebWork 2 the correct answer. WorkWeb and Jstruts are not actual names associated with Struts 2.

Multiple choice technology programming languages
  1. Overriding the populateBean method of the ActionMapping

  2. Overriding the processPopulate method of the Request Processor

  3. Overriding the populate method of the ActionForm

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Struts 1.1, the RequestProcessor class handles form population. The processPopulate method is responsible for populating ActionForm beans with request parameters. Overriding this method allows developers to customize how form data is populated, making option B correct. ActionMapping's populateBean and ActionForm's populate methods are not the standard extension points for this behavior.

Multiple choice technology enterprise content management
  1. Application Logger

  2. Event viewer

  3. All the above

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In the context of the InQuira platform, the 'Event Viewer' is the specific administrative tool designed to view, filter, and analyze the binary application log data. 'Application Logger' is not a standard tool for viewing these logs, making 'Event viewer' the correct choice.

Multiple choice technology
  1. connection between an Execution Unit (XU) and a non-EJB rule session in a J2SE application server

  2. connection between an Execution Unit (XU) and a non-EJB rule session in a J2EE application server

  3. connection between an Execution Unit (XU) and a EJB rule session in a J2EE application server

  4. connection between an Rule Team Server and a EJB rule session in a J2EE application server

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

IlrSimpleRuleSessionProvider is part of IBM WebSphere ILOG JRules. It provides a connection between the Execution Unit (XU) and a non-EJB rule session within a J2EE application server environment. This is different from J2SE which is a standalone Java environment without enterprise features.

Multiple choice technology programming languages
  1. using Exceptions

  2. using attributes

  3. using .NET remoting services

  4. using IO

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

.NET Remoting is the framework for communication between application domains in different processes or machines. It allows objects to interact across boundaries. Exceptions are for error handling, attributes are for metadata, and IO is for file operations - none are for cross-domain communication.

Multiple choice technology programming languages
  1. Entity beans are permanent business entities

  2. Entity Beans are persistence objects

  3. EntityBeans are permanent

  4. All of the Above

  5. Only 1 & 2

  6. Only 1 & 3

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Entity Beans in Enterprise JavaBeans (EJB) represent persistent business data stored in a database, making them both permanent business entities and persistent objects. Since options 1, 2, and 3 describe these characteristics accurately, "All of the Above" is the correct choice.