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
-
a. WSDL
-
b. Web Services Directory
-
c. UDDI
-
d. All of the above
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'.
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.
-
a. It is a distributed object system.
-
b. It is an RPC system.
-
c. It is even a Web application.
-
d. none of the above.
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.
-
true
-
b. False, SOAP doesn't define or imply a programming model.
-
False, SOAP can be used for messaging, RPC, Distributed object systems etc.
-
b and c
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.
-
a. true
-
b. false, SOAP is completely a request/response protocol
-
c. may be
-
d. may not be
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.
-
a. Use Web protocols
-
b. Are stateless
-
c. Are loosely coupled
-
Use XML as the universal data format
-
e. a and c only
-
f. all the above
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.
-
File Poller
-
RV Subscriber
-
HTTP Receiver
-
All of these
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.
-
HTTP connection
-
JDBC update
-
Mapper activity
-
FTP connection
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).
-
Local Object Manager
-
Local Data Manager
-
Local SWE
-
Siebel Server
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.
-
Object class
-
Action Servlet
-
Http Servlet
-
None Of the above
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.
-
A Technology
-
A Frameworks
-
A Java Development Tool Kit
-
A Language.
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.
-
application
-
resources
-
ApplicationResources
-
Messages
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.
-
void
-
String
-
ActionForward
-
ActionMapping
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)'
-
ActionErrors
-
ActionError
-
void
-
ActionMapping
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).
-
MappingDispatchAction
-
MethodDispatchAction
-
EventDispatchAction
-
LookUpDispatchAction
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.