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. service()

  2. init()

  3. destroy()

  4. containsHeader(java.lang.String name)

  5. GET

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

The servlet specification defines the service() method to take two parameters such as javax.servlet.ServletRequest and javax.servlet.ServletResponse object.

Multiple choice
  1. CALL_FORM because NEW_FORM is no longer valid for Web-deployed forms due to the extra network traffic that is caused.

  2. CALL_FORM because it can be issued in Enter-Query mode and can be constrained to be Query only.

  3. CALL_FORM because the second form is invoked in a modeless state and it saves on memory resources.

  4. NEW_FORM because the second form is invoked in a modeless state and the user can navigate freely between the two running forms.

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

CALL_FORM is the correct built-in for invoking the Orders form from Customers form because it can be issued while the calling form is in Enter-Query mode, and it can be constrained to query-only mode. This is important when you want to maintain query context in the calling form. CALL_FORM opens the second form in a modal state (not modeless as option C suggests), blocking navigation to the calling form until the called form closes. Option A incorrectly claims NEW_FORM is invalid for web deployment (it works but behaves differently). Option D is incorrect because NEW_FORM replaces the calling form entirely, preventing navigation between both.

Multiple choice
  1. CALL_FORM because NEW_FORM is no longer valid for Web-deployed forms due to the extra network traffic that is caused.

  2. CALL_FORM because it can be issued in Enter-Query mode and can be constrained to be Query only.

  3. CALL_FORM because the second form is invoked in a modeless state and it saves on memory resources.

  4. NEW_FORM because the second form is invoked in a modeless state and the user can navigate freely between the two running forms.

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

CALL_FORM because it can be issued in Enter-Query mode and can be constrained to be Query only.