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