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
  1. Offers a clean separation between behavior and presentation.

  2. No Robust event handling mechanism.

  3. Events easily tied to server-side code.

  4. Eliminated the need for a DTO Class

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Multiple choice technology architecture
  1. Compilers for different programming languages and target machines

  2. Decision support systems

  3. Web applications

  4. Middleware

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

Struts is specifically designed for building web applications in Java. It provides the infrastructure for web-based applications including MVC architecture, form handling, validation, and request processing. Compilers (A), decision support systems (B), and general middleware (D) are completely different problem domains that Struts does not address.

Multiple choice technology programming languages
  1. server side technology

  2. component oriented and event driven framework for GUI development

  3. follows MVC design pattern

  4. all of the above

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

JSF is indeed a server-side technology that is component-oriented and event-driven for GUI development, and it follows the MVC design pattern. All these characteristics are fundamental to JSF architecture. The framework handles UI components on the server, manages events, and separates concerns through MVC.

Multiple choice technology programming languages
  1. Servlets are server side components

  2. Applets have GUI interface

  3. Servlets have GUI interface

  4. Applets are client side components

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

IDOCs support asynchronous processing - they are created and queued when the source system sends data, and transmitted when the target system becomes available.

Multiple choice technology performance
  1. HTTP Request

  2. Junit Request

  3. WebService (SOAP) Request

  4. Web Socket Sampler

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

HTTP Request, JUnit Request, and WebService (SOAP) Request are all core JMeter samplers. Historically, WebSocket Sampler required a plugin and was not part of the core distribution, which is why it's marked as 'not valid' in this context. Note: Modern JMeter versions (4.x+) include WebSocket support, but this question reflects an earlier version.

Multiple choice technology performance
  1. Database via JDBC

  2. JMS

  3. Mail Server

  4. Unix

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

JMeter can performance test various server types: databases via JDBC (using JDBC Request sampler), JMS servers (using JMS Point-to-Point or Publish/Subscribe samplers), and Mail Servers (using Mail Reader and SMTP samplers). 'Unix' is not a server type - it's an operating system that hosts servers, but not something you performance test directly.

Multiple choice technology performance
  1. Pre-processors

  2. Post-processors

  3. Listeners

  4. Assertions

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

Post-processor elements run after a sampler executes and are specifically designed to process response data and extract values for use in subsequent requests. Examples include Regular Expression Extractor, JSON Extractor, and CSS Selector Extractor. Pre-processors run BEFORE requests, Listeners only view results, and Assertions validate responses.

Multiple choice technology programming languages
  1. Session

  2. Application

  3. Response.Cookies

  4. Response.ViewState

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

Application state stores data that is accessible to all users across the entire application - it's global to the application. Session state is user-specific and isolated per user session. Cookies are stored on the client-side browser. ViewState is page-specific for maintaining state across postbacks within a single page. For data that must be accessible to ANY user regardless of who they are, Application state is the correct choice.

Multiple choice technology web technology
  1. Simple Object Access Protocol

  2. Sample Object Access Protocol

  3. Servlet Object Access Protocol

  4. Simple Obtained Access Protocol

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

SOAP stands for Simple Object Access Protocol - it's a protocol for exchanging structured information in web services using XML. The other options use incorrect words like 'Sample', 'Servlet', or 'Obtained' that don't match the actual acronym.

Multiple choice technology web technology
  1. local servers

  2. remote servers

  3. many local servers

  4. none

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

SOAP (Simple Object Access Protocol) enables applications to invoke methods on objects located on remote servers over a network. It uses XML for message formatting and typically works over HTTP or SMTP. This allows distributed systems to communicate regardless of platform or programming language.