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

  2. WSDL

  3. WebAPI

  4. RDF

  5. XML Schema

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

Rules for communication between different systems need to be defined, such as: How one system can request data from another system; which specific parameters are needed in the data request; what would be the structure of the data produced. Normally, data is exchanged in XML files, and the structure of the XML file is validated against an .xsd file; what error messages to display when a certain rule for communication is not observed, to make troubleshooting easier. All of these rules for communication are defined in a file called WSDL (Web Services Description Language), which has the extension wsdl.

Multiple choice
  1. This method is used to force any content in the buffer to be written to the client.

  2. This method is used to clear any data that exists in the buffer as well as the status code and headers.

  3. This method is used to set the preferred buffer size for the body of the response.

  4. This method is used to set the character encoding (MIME charset) of the response being sent to the client.

  5. None of the above

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

Yes, flushBuffer() method is used for that.

Multiple choice
  1. This interface defines a set of methods that a servlet uses to communicate with its servlet container.

  2. There is only one servlet context object in the entire web application.

  3. There is one servlet context per servlet in the web application.

  4. All of the above

  5. Only (1) and (2)

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

Yes, both are the true options.