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 packaged enterprise solutions
  1. Provide a standard Java interface to client applications

  2. Provide common behaviour required for all EJB invocations

  3. both a and b

  4. none

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology packaged enterprise solutions
  1. Adapter

  2. Factory

  3. Singleton

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology packaged enterprise solutions
  1. Adapter

  2. Singleton

  3. Factory

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology packaged enterprise solutions
  1. Spring

  2. Hibernate

  3. Struts

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. XML Based application container

  2. XML based web container

  3. Java based web container

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. Service Oriented Application

  2. Service Oriented Architecture

  3. Simple Object Authentication

  4. Secure Oriented Architecture

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. The transformation from SOAP to fixed format/COBOL (inbound) and from fixed format/COBOL to SOAP (outbound)

  2. Authorization and Authentication

  3. Filters Input/output Request

  4. Generate the Secret Key

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology web technology
  1. EJB

  2. JPA

  3. JSP

  4. None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology platforms and products
  1. Web.xml

  2. Composite.xml

  3. Both of the above

  4. None

Reveal answer Fill a bubble to check yourself
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.