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
-
Can be shared between multiple clients
-
Is created when the client invokes create on the Home
-
Is the most scalable type of bean
-
None
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.
-
Has a client view
-
Has a Remote interface
-
Has a Local interface
-
Doesn’t feature a Component interface
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.
-
Can be shared between multiple clients as long as the entity being shared is the same
-
No interfaces required
-
Must have its EJBObject interface
-
Can't be shared between multiple clients
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.
-
zero-install DHTML/Ajax client engine
-
rich user interface components & services
-
client-server databinding systems
-
All Of Above
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.
-
Synchronous Communication between Browser and server
-
Asynchronous Communication between Browser and server
-
Socket Connection
-
None
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.
-
Web services
-
Direct Web remoting
-
Javascript remote Procedure Calls
-
All Of the Above
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.
-
Web page development framework
-
Alternative to EJB architecture
-
Design pattern
-
None of the above
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.
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.
-
JMS
-
SOAP
-
Both A & B
-
None of the above
C
Correct answer
Explanation
BBE (Broadband Engine) messaging architectures utilize both JMS (Java Message Service) for asynchronous messaging and SOAP (Simple Object Access Protocol) for synchronous web services.
-
Java Markup Service
-
Java Message Standard
-
Java Message Service
-
Both B & C
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.
-
JMS
-
SOAP
-
Both A & B
-
None of the above
C
Correct answer
Explanation
BBE uses both JMS (Java Message Service) and SOAP (Simple Object Access Protocol) for messaging. These are two different messaging patterns used in enterprise integration.
-
Java Markup Service
-
Java Message Standard
-
Java Message Service
-
Both B & C
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.
-
Simple Object Access Protocol
-
Simplified Object Access Protocol
-
Simplified Object Access Program
-
Simple Or Advanced Protocol
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.
-
Application server is actually a program named Sapgui.exe. It is usually installed On a user’s workstation.
-
Application server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them.
-
Presentation server is actually a program named Sapgui.exe. It is usually installed On a user’s workstation.
-
Presentation server is a set of executables that collectively interpret the ABAP/4 Programs and manage the input & output for them.
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.
-
WSDL
-
Web Services Directory
-
UDDI
-
All of the above
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.