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

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.

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. It's a Java API for messaging systems that allows applications to create, send, receive, and read messages.

Multiple choice technology web technology
  1. Simple Object Access Protocol

  2. Simplified Object Access Protocol

  3. Simplified Object Access Program

  4. Simple Or Advanced Protocol

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

SOAP (Simple Object Access Protocol) is a messaging protocol for exchanging structured information in web services using XML. It provides a framework for web services communication independent of platform and implementation.

Multiple choice technology programming languages
  1. Application server is actually a program named Sapgui.exe. It is usually installed On a user’s workstation.

  2. Application server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them.

  3. Presentation server is actually a program named Sapgui.exe. It is usually installed On a user’s workstation.

  4. Presentation server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them.

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

Presentation server (SAPgui) runs on user workstations and provides the graphical interface. Application server executes ABAP programs and manages data flow between presentation and database layers.

Multiple choice technology web technology
  1. WSDL

  2. Web Services Directory

  3. UDDI

  4. All of the above

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

UDDI (Universal Description, Discovery, and Integration) is the protocol used for web service directories/registries. It provides a standard way for businesses to publish and discover web services. WSDL describes individual services, not the directory protocol itself.