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. 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.

Multiple choice technology web technology
  1. WS-Routing

  2. WS-Referral

  3. Not possible in SOAP.

  4. a & b

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

WS-Routing is a stateless protocol that extends SOAP by defining means to specify an ordered route for message transmission. It introduces SOAP headers that define the path a message should take through intermediaries. This enables explicit routing control while maintaining statelessness. Option A is correct.

Multiple choice technology web technology
  1. “from”

  2. “to”

  3. “fwd”

  4. “rev”

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

WS-Routing defines a 'path' SOAP header containing several elements including 'from', 'to', 'fwd', and 'rev'. The 'from' element specifically identifies the message originator (the sender). This is part of the routing information that helps track the message's journey through the network. Option A is correct.

Multiple choice technology web technology
  1. “from”

  2. “to”

  3. “fwd”

  4. “rev”

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

In WS-Routing, the "to" element within the SOAP "path" header specifies the ultimate receiver of the message. The "from" element identifies the original sender, "fwd" contains the forward path through intermediaries, and "rev" contains the reverse path for responses.

Multiple choice technology web technology
  1. True

  2. False

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

SOAP is fundamentally about document-based XML message exchange, not RPC-style object access. While SOAP can be used in an RPC-style (where Body contains method call parameters), the SOAP specification itself does not define object models, method invocation, or remote object access - those are implementation patterns layered on top of SOAP's messaging foundation.

Multiple choice technology web technology
  1. True

  2. False

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

JSP (JavaServer Pages) technology is designed to be extensible through custom tag libraries, tag files, and integration with servlets and JavaBeans. This extensibility allows developers to create reusable components and separate presentation logic from business logic.

Multiple choice technology web technology
  1. JSP standard directives.

  2. JSP standard actions.

  3. Script language declarations, scriplets and expressions.

  4. A portable tag extension mechanism.

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

The JSP specification comprehensively defines standard directives (page, include, taglib), standard actions (jsp:include, jsp:forward, jsp:useBean), script elements (declarations, scriptlets, expressions), and a portable tag extension mechanism for custom tags. All these components form the complete JSP feature set.

Multiple choice technology web technology
  1. Objects with page scope are accessible only within the page where they are created

  2. • References to objects with page scope are stored in the pagecontext object

  3. All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwarded somewhere else.

  4. All of the above.

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

Page scope in JSP is the most limited scope - objects are accessible only within the specific JSP page where they are created. References are stored in the implicit pageContext object, and all references are automatically released when the response is completed or the request is forwarded to another resource.

Multiple choice technology web technology
  1. setContentType()

  2. setPrintType()

  3. setWriter()

  4. setContentWriter()

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

Before using PrintWriter to write response content, you must set the content type using response.setContentType() to inform the browser about the data format (e.g., text/html, application/json). This ensures proper character encoding and content rendering on the client side.

Multiple choice technology web technology
  1. True

  2. False

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

The response.sendRedirect() method is indeed used to redirect the browser to a different resource. This sends an HTTP 302 status code to the client, causing the browser to make a new request to the specified URL. This is a client-side redirect, unlike jsp:forward which is server-side.