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 web technology
  1. True

  2. False

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

A Web Services Listener receives incoming service requests and routes them to the appropriate business logic component for processing. This is a fundamental pattern in service-oriented architectures where the listener acts as an entry point that delegates actual processing to backend components.

Multiple choice technology web technology
  1. a. It is a distributed object system.

  2. b. It is an RPC system.

  3. c. It is even a Web application.

  4. d. none of the above.

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

SOAP (Simple Object Access Protocol) is NOT a distributed object system (like CORBA/DCOM). It's NOT purely an RPC system - it's a messaging protocol. It's definitely not a Web application. It's an XML-based protocol for exchanging structured information in web services. Options A, B, C are all incorrect characterizations, so D (none of the above) is correct.

Multiple choice technology web technology
  1. true

  2. b. False, SOAP doesn't define or imply a programming model.

  3. False, SOAP can be used for messaging, RPC, Distributed object systems etc.

  4. b and c

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

SOAP is not limited to RPC. It defines a message format and envelope that can be used for various communication patterns including messaging, remote procedure calls, and distributed object systems. SOAP doesn't impose a specific programming model - it's protocol-agnostic.

Multiple choice technology web technology
  1. a. true

  2. b. false, SOAP is completely a request/response protocol

  3. c. may be

  4. d. may not be

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

SOAP itself doesn't mandate any specific message exchange pattern (MEP). While request/response is common, SOAP supports various patterns including one-way, solicit-response, notification, and peer-to-peer messaging. The protocol is deliberately flexible about MEPs.

Multiple choice technology web technology
  1. a. Use Web protocols

  2. b. Are stateless

  3. c. Are loosely coupled

  4. Use XML as the universal data format

  5. e. a and c only

  6. f. all the above

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

Web Services characteristics include: using web protocols (HTTP/HTTPS), statelessness (no client session context stored), loose coupling (minimal dependencies between services), and XML as universal data format. All four characteristics are correct.

Multiple choice technology
  1. File Poller

  2. RV Subscriber

  3. HTTP Receiver

  4. All of these

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

File Poller, RV (Rendezvous) Subscriber, and HTTP Receiver are all examples of Process Starter activities in TIBCO BusinessWorks. Process starters initiate process execution based on external events (file arrival, RV message, HTTP request). 'All of these' is the correct answer.

Multiple choice technology
  1. HTTP connection

  2. JDBC update

  3. Mapper activity

  4. FTP connection

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

Shared configurations in TIBCO BusinessWorks are reusable resource definitions that can be referenced across multiple activities. HTTP connection and FTP connection are classic examples - defined once and shared. JDBC update is activity-specific (not shareable), and Mapper is an activity (not a configuration resource).

Multiple choice technology
  1. Local Object Manager

  2. Local Data Manager

  3. Local SWE

  4. Siebel Server

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

Mobile web clients use local components for offline capability: Local Object Manager (A), Local Data Manager (B), and Local SWE (Siebel Web Engine) (C). The Siebel Server (D) is a server-side component used by web clients, not mobile web clients which rely on local components.

Multiple choice technology programming languages
  1. Object class

  2. Action Servlet

  3. Http Servlet

  4. None Of the above

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

The org.apache.struts.action.Action class in Struts extends java.lang.Object directly, not ActionServlet or HttpServlet. While Action classes work with HTTP requests (via execute method taking HttpServletRequest), they don't inherit from HttpServlet. ActionServlet is the front controller that handles all requests and delegates to Action classes - they are separate classes in the hierarchy.

Multiple choice technology programming languages
  1. A Technology

  2. A Frameworks

  3. A Java Development Tool Kit

  4. A Language.

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

Struts is a web application framework for Java. A framework provides structure, reusable components, and a standard architecture for building applications. Option A 'Technology' is too vague - Struts uses technology but isn't itself 'a technology'. Option C 'Java Development Tool Kit' refers to JDK. Option D 'A Language' is incorrect. Struts is specifically an MVC framework that helps organize web applications.

Multiple choice technology programming languages
  1. application

  2. resources

  3. ApplicationResources

  4. Messages

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

In Struts, the Application Resources file (containing localized messages) is specified through the 'application' servlet init-parameter in web.xml. This parameter points to the base name of the resource bundle (e.g., 'ApplicationResources' for ApplicationResources.properties). The servlet initialization code reads this parameter to load message resources.

Multiple choice technology programming languages
  1. HttpServletReuest reuest, HttpServletResponse response

  2. HttpServletReuest reuest,ActionMapping mapping

  3. ActionMapping mapping,HttpServletReuest reuest

  4. ActionMapping mapping,HttpServletResponse response

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

The validate() method in Struts ActionForm has the signature validate(ActionMapping mapping, HttpServletRequest request). It receives the mapping configuration and the current request to perform validation on form data. Option C correctly shows ActionMapping first, then HttpServletRequest.

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 was originally called WebWork 2 before the two frameworks merged. WebWork 2 was a separate framework that combined with Struts to create the more modern Struts 2 framework. This is historical knowledge about Struts evolution.

Multiple choice technology programming languages
  1. Bypass calls to the ActionForm validate method

  2. Bypass validation of the Struts configuration file

  3. Generate an error message if an unknown message key is used

  4. None of Above

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

The 'validating' init-param in ActionServlet controls whether Struts validates its configuration file (struts-config.xml). Setting it to 'false' or 'no' bypasses this validation during startup. This is useful for faster development cycles or when you're confident the config is correct.

Multiple choice technology programming languages
  1. ActionServlet

  2. ReuestProcessor

  3. Action

  4. HttpReuest

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

The RequestProcessor is responsible for processing requests in Struts, including instantiating ActionForm instances and placing them in the appropriate scope (request, session, or application) based on the scope attribute in the struts-config.xml configuration. Option A is the controller servlet but delegates this work. Option C is incorrect as Action classes execute business logic. Option D is not a class.