Computer Knowledge

Java Enterprise and Web Technologies

2,183 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. public ActionErrors validate(ActionMapping mapping,HttpServletReuest reuest)

  2. public ActionError validate(ActionMapping mapping, HttpServletReuest reuest)

  3. public ActionError validate(HttpServletReuest reuest, HttpServletResponse response)

  4. None of the above

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

The validate() method signature is public ActionErrors validate(ActionMapping mapping, HttpServletRequest request). It returns ActionErrors (plural) to collect multiple validation failures, and accepts the mapping and request objects.

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. 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.

Multiple choice technology web technology
  1. business MO

  2. UI MO

  3. DB

  4. none of the above

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

UI MO (UI Model Object) is the immediate data source for JSP pages, holding data ready for display. Business MO and DB are backend sources that require additional processing, while UI MO is the presentation layer's direct data interface.