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

  2. b. Web Services Directory

  3. c. UDDI

  4. d. All of the above

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

UDDI (Universal Description, Discovery, and Integration) is the protocol used for publishing and discovering web services in directories. Option C is correct. Option A (WSDL) is for describing services, not directory publishing. Option B is a generic description, not a protocol. Option D is incorrect because UDDI is the specific standard, not 'all of the above'.

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

  2. String

  3. ActionForward

  4. ActionMapping

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

In Struts 1.x, the execute() method in Action class returns ActionForward, which represents the destination to which the controller should forward the request. This object contains the path information and can be configured to perform a redirect instead of a forward. The method signature is 'public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)'

Multiple choice technology programming languages
  1. ActionErrors

  2. ActionError

  3. void

  4. ActionMapping

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

The reset() method in ActionForm has return type void. This method is called by the Struts controller to reset the form bean's properties to default values before populating it with new request parameters. The method signature is 'public void reset(ActionMapping mapping, HttpServletRequest request)'. It's not used for validation (that's validate() which returns ActionErrors).

Multiple choice technology programming languages
  1. MappingDispatchAction

  2. MethodDispatchAction

  3. EventDispatchAction

  4. LookUpDispatchAction

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

MethodDispatchAction does not exist in Apache Struts framework. The actual subclasses of DispatchAction include MappingDispatchAction and LookupDispatchAction (note: the correct spelling is 'Lookup' not 'LookUp'). EventDispatchAction is also not a standard Struts class, but the question identifies MethodDispatchAction as the answer.