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
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.
-
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.
-
Session object
-
Application object
-
View state
-
All of the above
D
Correct answer
Explanation
ASP.NET provides multiple state management mechanisms for different scopes and lifecycles. Session object maintains user-specific data across requests, Application object stores global data shared across all users, and ViewState preserves page-specific control values during postbacks. All three are valid state management techniques in ASP.NET applications.
-
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.
-
manipulationg data before sending it to the external service
-
To send data to Oracle BAM for analysis
-
To define the external services which the BPEL service component is to interact.
-
All of the above
C
Correct answer
Explanation
A PartnerLink in BPEL defines the external services that the BPEL process will interact with. It encapsulates the WSDL port type and binding information needed for service invocation. Options A and B refer to different BPEL constructs - data manipulation is done using assign activities, and BAM integration uses specific BAM sensor actions, not PartnerLinks.