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
-
ejb-jar manifest
-
Deployment descriptor
-
Bean managed persistence
-
ejb-client JAR file
-
Instance passivation
D
Correct answer
Explanation
This file is specified in the deployment descriptor of the ejb-jar file using the optional ejb-client-jar element.
-
EJB server provider
-
Deployment descriptor
-
Enterprise java beans architecture
-
Preached instance
-
TX_MANDATORY
C
Correct answer
Explanation
Enterprise java beans architecture will provide interoperability between enterprise beans and non java programming language applications.
-
Bean managed persistence
-
Entity bean's deployment descriptor
-
Stateless session bean
-
EJB server provider
-
Instance pooling
B
Correct answer
Explanation
In entity bean's deployment descriptor, the fields that the container should managed must be specified.
-
Deployer
-
EJB container
-
EJB server provider
-
Deployment descriptor
-
Instance passivation
A
Correct answer
Explanation
It generates the additional classes and interfaces that enable the container to manage the enterprise beans at runtime.
-
Spring
-
Struts
-
Groovy
-
Grails
-
All of the above
C
Correct answer
Explanation
It is a computer language based on the Grails framework.
-
IBM Websphere Server
-
Weblogic Server
-
Tomcat Server
-
Glass Fish Server
-
None of the above
-
SOAP platform and language independent, allows to get around firewalls
-
SOAP is based on HTML
-
SOAP is designed to communicate through LAN
-
All of the above
A
Correct answer
Explanation
SOAP's key advantages are platform and language independence, plus its ability to traverse firewalls by using HTTP as its transport protocol. This makes it ideal for heterogeneous environments. SOAP is XML-based, not HTML-based, and is designed for WAN/internet communication, not just LAN.
-
HTTP-RPC
-
XML-HTTP
-
XML-RPC
-
SOAP-XML
C
Correct answer
Explanation
XML-RPC is a remote procedure calling protocol that uses XML for encoding calls and HTTP as the transport mechanism. It was one of the earliest protocols for performing remote procedure calls in web services, though SOAP has largely superseded it.
-
web service implementing client components
-
web service protocol stack
-
web service supporting repository
-
web service supporting request and response components
B
Correct answer
Explanation
The web service protocol stack consists of four layers: Service Transport (HTTP, SMTP, etc.), XML Messaging (SOAP, XML-RPC), Service Description (WSDL), and Service Discovery (UDDI). These layers work together to enable web service communication.
-
Apache ANT
-
Apache Tomcat
-
Jakarta Struts
-
Apache Axis
D
Correct answer
Explanation
Apache Axis is an open source implementation of the SOAP protocol, providing both server and client functionality for creating and consuming web services. Apache ANT is a build tool, Tomcat is a servlet container, and Struts is a web framework.
-
java:RPC, java:EJB
-
java:WSDL, java:UDDI
-
java:eb-xml, java:SOAP
-
None of the above
-
Representational State Transfer (REST)
-
Remote Procedure Calls
-
Reusable Application Components
-
None of the above
A
Correct answer
Explanation
REST (Representational State Transfer) is an architectural style for designing networked applications, particularly web services. It uses standard HTTP methods (GET, POST, PUT, DELETE) and emphasizes stateless communication, resource identification through URIs, and standardized interfaces.
-
A standard way of integrating web-based applications
-
One type of service that can be part of a Service Oriented Architecture
-
Programmable XML-based service
-
All of the above
D
Correct answer
Explanation
Web services encompass all these characteristics: they provide a standard way to integrate web-based applications using XML-based protocols, and they can be part of a Service Oriented Architecture (SOA).
-
SOAP, UDDI, XML
-
HTTP, WSDL
-
UDDI, XML, SOAP
-
SOAP, UDDI, WSDL
D
Correct answer
Explanation
Web service platforms consist of three core standards: SOAP (Simple Object Access Protocol) for messaging, UDDI (Universal Description, Discovery, and Integration) for service registry/discovery, and WSDL (Web Services Description Language) for describing service interfaces.
-
Java applet
-
Java beans
-
Filter
-
Java IDL
-
WebSphere
D
Correct answer
Explanation
It is a technology for distributed objects-that is, objects interacting on different platforms across a network.