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
B
Correct answer
Explanation
A web service is more than just a function - it is a standardized, self-contained, modular software component that can be described, published, discovered, and invoked over a network using standard XML-based protocols. The statement oversimplifies web services as merely exposed functions.
-
Open Standard
-
Secure
-
Text Based Response
-
All of Them
A,C
Correct answer
Explanation
Web services use open standards (XML, SOAP, WSDL) making them interoperable across platforms. They use text-based XML responses which are readable and firewall-friendly. However, web services are not inherently more secure than native alternatives - they still need proper security implementation.
-
Its a protocol for calling services
-
Its a registry for discovering services
-
Its an xml file for defining the methods that can be called over the web.
-
None of the above
C
Correct answer
Explanation
WSDL (Web Services Description Language) is an XML document that defines the service interface, operations, parameters, and location. UDDI is a registry, not WSDL. WSDL itself is not a calling protocol - it describes the service that can be called via protocols like SOAP.
B
Correct answer
Explanation
The statement is false. REST services do NOT require any wrapper around HTTP - they use HTTP directly with its verbs (GET, POST, PUT, DELETE). SOAP requires a wrapper layer (SOAP envelope) around HTTP. REST is more lightweight because it avoids this wrapper.
-
A Web service
-
A tool to generate Web services from java classes.
-
A tool to generate web service stubs.
-
All of the above.
B,C
Correct answer
Explanation
Apache Axis is a Java framework for web services. It can generate web services from existing Java classes (Java2WSDL) and generate client stubs from WSDL (WSDL2Java). It is a tool/framework, not a web service itself. Options B and C are both correct Axis capabilities.
-
Rule Container
-
Rule Engine
-
Ruleset
-
Rule Server
B
Correct answer
Explanation
The Rule Engine is the core API/mechanism in ILOG BRMS that executes business rules. It takes rule definitions, evaluates conditions against input data, and executes the appropriate actions. A Rule Container is a storage mechanism, a Ruleset is a collection of rules, and a Rule Server handles deployment and management - but only the Rule Engine actually executes the rules.
-
From Rules Business Object Model
-
From Execution Object Model(XOM)
-
An administrator will provide input in runtime
-
Rules can run independent of any external component
B
Correct answer
Explanation
The Execution Object Model (XOM) is how ILOG BRMS interfaces with external data at runtime. XOM provides the working memory and object model that rules query and manipulate during execution. Business Object Models are design-time artifacts, administrators don't typically provide runtime input, and rules cannot run completely independently - they need data via XOM.
-
Server side validation
-
Client side validation
-
It is used to handle flow
-
Both a & b
B
Correct answer
Explanation
In PS Framework, the page handler provides client-side validation functionality. It validates user input on the browser before submitting to the server, improving responsiveness and reducing server load. Server-side validation would happen on the backend, and flow handling is typically managed by controllers, not page handlers.
-
Unique identifier for Servlet
-
Is one of the method in action controller
-
a & b
-
All the above
A
Correct answer
Explanation
getApplicationId() returns a unique identifier for a Servlet in the web application context. It helps distinguish different servlets or application instances within the same server. While it could theoretically be used in an action controller, its primary purpose is servlet identification rather than being a controller method itself.
A
Correct answer
Explanation
UsaaHttpServlet is a custom abstract class built on top of the standard HttpServlet, extending its functionality for framework-specific requirements. The abstract class inherits all HTTP method handling capabilities from HttpServlet while adding USAA-specific behavior. This is a common pattern in custom servlet frameworks.
-
doGet()
-
doPost()
-
a & b
-
processRequest()
C
Correct answer
Explanation
Framework servlets typically handle multiple HTTP methods. PsFrameworkServlet overrides both doGet() and doPost() methods to provide consistent request processing and routing across different HTTP request types within the framework's architecture. Option D (processRequest) is likely an internal method, not the standard HttpServlet override.
-
Session Facade pattern only
-
Interceptors only
-
both session Facade and interceptor patterns
-
none
C
Correct answer
Explanation
The Business Services Framework (BSF) incorporates both the Session Facade pattern and the Interceptor pattern. Session Facade provides a unified interface to business logic, while Interceptors handle cross-cutting concerns like logging, security, and transaction management. Together they form a comprehensive framework architecture.
A
Correct answer
Explanation
The Session Facade pattern acts as a coarse-grained controller, exposing business services to the presentation tier or Business Delegate via a distributed interface. This abstraction hides the complexity of underlying business components, making the statement true. The false option is incorrect.
-
Provide a standard Java interface to client applications
-
Provide common behaviour required for all EJB invocations
-
both a and b
-
none
C
Correct answer
Explanation
The Business Delegate pattern decouples presentation and business tiers by exposing a standard Java interface to client applications. It also encapsulates EJB invocation behaviors, such as caching, lookup, and exception handling. Therefore, both characteristics are correct, making the combined option the right choice.
-
Adapter
-
Factory
-
Singleton
-
All the above
D
Correct answer
Explanation
BOM (Business Object Model) uses multiple design patterns including Adapter (for interface compatibility), Factory (for object creation), and Singleton (for ensuring single instances). All three patterns serve different purposes in the architecture and are commonly used together in enterprise systems.