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 .net asp
  1. Allows you to include server executed code into any ASP application.

  2. Allows you to use one file in several different web pages.

  3. Allows you to use a piece of code more than once.

  4. All of the above

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

Server-Side Includes (SSI) enables all three capabilities: including server-executed code in ASP applications, reusing a single file across multiple web pages, and reusing code snippets multiple times. SSI promotes code modularity and maintainability by allowing developers to include common elements like headers, footers, or navigation bars across many pages from a single source file.

Multiple choice .net asp
  1. Response.Output.Write() allows you to flush output

  2. Response.Output.Write() allows you to buffer output

  3. Response.Output.Write() allows you to write formatted output

  4. Response.Output.Write() allows you to stream output

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

Response.Output.Write() provides formatted output capabilities using String.Format-style syntax, while Response.Write() only writes raw strings. Response.Output.Write() allows you to write formatted output with parameters like Response.Output.Write("Hello {0}", name), making it more flexible for dynamic content generation. The other options (flush, buffer, stream) are not the key differences.

Multiple choice .net asp
  1. Implement application and session level events

  2. Declare Global variables

  3. No use

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

Global.asax is the ASP.NET application file that handles application-level and session-level events. It contains event handlers like Application_Start, Application_End, Session_Start, and Session_End, allowing developers to respond to key application lifecycle events.

Multiple choice .net asp
  1. Session Objects

  2. Application Objects

  3. Viewstate

  4. All of the above

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

ASP.NET supports multiple state management techniques across different scopes. Session objects store user-specific data, Application objects store application-wide data shared across all users, and ViewState maintains page-level state across postbacks.

Multiple choice .net asp
  1. InProcess

  2. StateServer

  3. Session Object

  4. al of the above

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

By default, ASP.NET stores session data in the InProcess mode, which keeps session data in the memory of the ASP.NET worker process. StateServer and SQL Server are alternative storage modes that need to be explicitly configured in web.config for web farm scenarios or when persistence across process restarts is needed.

Multiple choice computer
  1. The largest software developer owned by native Americans.

  2. A leading developer of Java applications.

  3. A website that holds auctions for concert tickets.

  4. The most popular web server application.

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

Apache HTTP Server has been the world's most widely used web server software since 1996. It is open-source software that serves web content over HTTP and powers a majority of websites globally.

Multiple choice web-design
  1. CGI

  2. Server Script

  3. Server side processor

  4. Servlet

  5. Java Server Script

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

A servlet is a Java program that runs on a server-side web server, analogous to how applets run on the client side in browsers. Servlets handle client requests and generate responses. The other options don't describe server-side Java applets - CGI is a general interface, 'Server Script' and 'Java Server Script' are not standard terms for this concept.

Multiple choice xml
  1. UDDI

  2. WSDL

  3. SOAP

  4. Path

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

WSDL (Web Services Description Language) is an XML-based interface definition language that describes the functionality offered by a web service, including the operations available, message formats, and protocol details. UDDI is a registry service, SOAP is a message protocol, and 'Path' is not a relevant XML service technology.

Multiple choice security
  1. Include the authentication element.

  2. Include the authorization element.

  3. Include the identity element.

  4. Include the deny element.

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

Authentication in an ASP.NET application via web.config is configured using the authentication configuration element within the system.web section. Authorization is handled separately using the authorization element.

Multiple choice active mq
  1. SSL

  2. clustering,SSL

  3. SSL,TCP

  4. Clustering,SSL,TCP,persistence

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

ActiveMQ provides enterprise messaging features including clustering for scalability, SSL for secure communication, TCP as a transport protocol, and persistence for message durability, making it suitable for production enterprise deployments.

Multiple choice active mq
  1. Enterprise Application Integration

  2. Middle ware

  3. Enterprise Service Bus

  4. Service Oriented architecture

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

Apache ActiveMQ serves as the messaging backbone in Enterprise Service Bus (ESB) implementations like Apache ServiceMix and Apache Camel, enabling integration between different applications and services in a service-oriented architecture.