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 web technology
  1. To read and write to-from a UDDI registry using SOAP messages

  2. To read and write to-from an ebXML registry using SOAP messages

  3. A and B

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JAXR provides a unified Java API for accessing different types of XML-based business registries, including both UDDI and ebXML registries. It abstracts the registry-specific details through a common interface, supporting operations like publishing and querying service metadata. Option C correctly identifies this dual support.

Multiple choice technology web technology
  1. A toolkit that allows developers to build, test and deploy Web Services

  2. Includes reference implementations for JavaServer Faces (JSF),JAXB,JAXP,JAXR,JAX-RPC,SAAJ and JSTL

  3. New specification request in the community process

  4. A and B

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Java WSDP is a toolkit providing integrated tools, APIs, and reference implementations for building web services (option A). It includes reference implementations for multiple Java XML technologies (option B lists them). The pack is a practical development toolkit, not a specification request (C is wrong). D correctly combines A and B.

Multiple choice technology programming languages
  1. Serializable

  2. Remote

  3. Cloneable

  4. List

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Marker interfaces have no methods and serve only to mark classes for special treatment by the JVM or compiler. Serializable, Remote, and Cloneable are marker interfaces, while List is a regular interface with multiple methods defining collection operations like add(), get(), and remove().

Multiple choice technology databases
  1. It will clean up your code and reduce the complexity of iBATIS

  2. It will generate the folder structure and delete the Objects from the cache memory

  3. It will clean up your code and improve the usability of iBATIS in the long term

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Using namespaces properly in iBATIS organizes SQL mappings and prevents naming conflicts. This cleaner structure makes code more maintainable and iBATIS easier to use over time. Option B incorrectly mentions deleting Objects from cache, which is unrelated.

Multiple choice technology web technology
  1. Can be shared between multiple clients

  2. Is created when the client invokes create on the Home

  3. Is the most scalable type of bean

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Stateful session beans maintain conversational state with a specific client and are created when the client invokes the create() method on the Home interface. They cannot be shared between clients - each client gets its own bean instance.

Multiple choice technology web technology
  1. Has a client view

  2. Has a Remote interface

  3. Has a Local interface

  4. Doesn’t feature a Component interface

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Message-driven beans are different from session and entity beans - they don't have business interfaces (Remote/Local) that clients call directly. Instead, they listen to JMS messages and process them asynchronously, so they lack a Component interface.

Multiple choice technology web technology
  1. Can be shared between multiple clients as long as the entity being shared is the same

  2. No interfaces required

  3. Must have its EJBObject interface

  4. Can't be shared between multiple clients

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

Entity beans represent persistent data and can be shared between multiple clients accessing the same entity. They MUST have an EJBObject interface for remote access. Options A and C are both correct characteristics of entity beans.

Multiple choice technology web technology
  1. zero-install DHTML/Ajax client engine

  2. rich user interface components & services

  3. client-server databinding systems

  4. All Of Above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SmartClient is an enterprise-grade web application platform that provides a zero-install Ajax engine, rich UI components, and robust client-server databinding systems.

Multiple choice technology web technology
  1. Synchronous Communication between Browser and server

  2. Asynchronous Communication between Browser and server

  3. Socket Connection

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

AJAX (Asynchronous JavaScript and XML) is designed specifically for asynchronous communication between the browser and server. This allows web pages to update partially without reloading the entire page. Synchronous communication would block the browser, and socket connections are not the primary mechanism AJAX uses.

Multiple choice technology web technology
  1. Web services

  2. Direct Web remoting

  3. Javascript remote Procedure Calls

  4. All Of the Above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

SmartClient is a comprehensive web framework that supports multiple communication protocols, including Web Services (WSDL/SOAP), Direct Web Remoting (DWR), and custom JavaScript RPCs.

Multiple choice technology
  1. Web page development framework

  2. Alternative to EJB architecture

  3. Design pattern

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Apache Struts is a web application framework for Java that facilitates developing web pages. It uses MVC (Model-View-Controller) architecture and extends the Java Servlet API. While it relates to web architecture, it's not specifically an EJB alternative (though it can work alongside or replace some EJB use cases) nor is it just a design pattern.

Multiple choice technology
  1. IBM

  2. Apache

  3. Oracle

  4. Redhat

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Apache Struts is an open-source web application framework hosted by the Apache Software Foundation. It follows the Model-View-Controller (MVC) pattern and is used for developing Java web applications.

Multiple choice technology web technology
  1. Java Markup Service

  2. Java Message Standard

  3. Java Message Service

  4. Both B & C

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

JMS stands for Java Message Service, which is a Java API that allows applications to create, send, receive, and read messages in enterprise messaging systems.