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
-
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.
A
Correct answer
Explanation
There are BOM classes that are directly referenced by clients without using interfaces. While interface-based design is preferred for loose coupling, direct class references exist in some parts of the architecture for practical reasons like simplicity or performance.
-
JSP
-
POJO
-
Servlets
-
All the above
B
Correct answer
Explanation
BOM is developed using POJOs (Plain Old Java Objects) rather than JSPs (for web presentation) or Servlets (for web request handling). POJOs are simple Java objects that don't depend on specialized frameworks, making them lightweight and testable.
-
Adapter
-
Singleton
-
Factory
-
All the above
C
Correct answer
Explanation
BOM uses the Factory pattern to instantiate objects in the BOM graph per client request. The Factory pattern centralizes object creation logic, allowing for controlled instantiation and easy management of object lifecycles. Adapter is for interface compatibility, Singleton ensures single instances.
-
Spring
-
Hibernate
-
Struts
-
None of the above
B
Correct answer
Explanation
Hibernate is an ORM (Object-Relational Mapping) persistence framework specifically designed for database operations. Spring is a broader framework with multiple capabilities including dependency injection and MVC, not primarily a persistence framework. Struts is a web MVC framework.
B
Correct answer
Explanation
Apache HTTP Server is a web server, whereas web containers like Tomcat handle servlet execution and Java EE components. Therefore, stating that Apache is a web container in a web server is incorrect in this context.
-
XML Based application container
-
XML based web container
-
Java based web container
-
None of the above
A
Correct answer
Explanation
Genesys is an XML-based application container framework that uses XML extensively for configuration, routing, event mapping, and flow definitions. While it can run in web environments and uses Java, it's fundamentally an application container defined by XML configuration files, not specifically a web container like Tomcat.
-
XML messages
-
SQL queries
-
Javascripts
-
XSL templates
A
Correct answer
Explanation
Genesys uses XML messages for communication between services and the executor layer. XML provides a structured, platform-independent format for data exchange that is widely used in enterprise service-oriented architectures.
-
Service Oriented Application
-
Service Oriented Architecture
-
Simple Object Authentication
-
Secure Oriented Architecture
B
Correct answer
Explanation
SOA stands for Service Oriented Architecture. It's an architectural pattern where applications are built from loosely-coupled, reusable services. The other options are plausible-sounding but incorrect expansions. SOA is about organizing software capabilities as services that can be discovered and called over a network.
-
The transformation from SOAP to fixed format/COBOL (inbound) and from fixed format/COBOL to SOAP (outbound)
-
Authorization and Authentication
-
Filters Input/output Request
-
Generate the Secret Key
A
Correct answer
Explanation
WebSphere Message Broker (now IBM App Connect Enterprise) performs message transformation including SOAP to fixed format/COBOL conversions. This is a core ESB function - transforming between different message formats (like XML/SOAP and legacy COBOL copybooks) during inbound and outbound processing. Options B, C, and D describe security or processing functions not specific to transformation.
-
Apache
-
Weblogic
-
Webspere
-
None
C
Correct answer
Explanation
JSP (JavaServer Pages) is a server-side technology that generates dynamic web content and is used for creating frontend user interfaces. EJB (Enterprise JavaBeans) handles server-side business logic, while JPA (Java Persistence API) manages database operations, making them backend technologies.
-
$.getScript(url,callback)
-
$.ajax(options)
-
$.post(url,data,type,callback)
-
$.get(url,data,callback,type)
-
Web.xml
-
Composite.xml
-
Both of the above
-
None
B
Correct answer
Explanation
The composite.xml file is the core descriptor file for a SOA Composite application in Oracle SOA Suite. It defines the composite's structure including its components, services, references, wires, and configuration. The web.xml file (option A) is used for Java web applications, not SOA composites.