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 technology web technology
  1. MVC

  2. MVC2

  3. both

  4. none of them

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

Struts framework implements the MVC (Model-View-Controller) design pattern. It separates the application logic into three interconnected components: Model (data), View (presentation), and Controller (logic). Option A correctly identifies this foundational architectural pattern that Struts is built upon.

Multiple choice technology programming languages
  1. The Server object

  2. The Application object

  3. The Request object

  4. The Response object

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

The ASP.NET Server object provides access to server-side methods and properties, including information about the web server. It can be used to execute server methods (like Server.MapPath() for file paths) and access server utilities. The Application object stores global application state, Request handles incoming HTTP data, and Response manages outgoing HTTP data - none provide direct web server information.

Multiple choice technology programming languages
  1. To store the global information and variable definitions for the application

  2. Configures the time that the server-side codebehind module is called

  3. To configure the web server

  4. To configure the web browser

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

Web.config is an XML-based configuration file for ASP.NET applications. It stores application-wide settings including connection strings, custom application variables, authentication rules, and compilation settings. It does NOT configure the web server (that's web.config for IIS or machine.config) or the web browser (browser settings are client-side). The answer correctly identifies its purpose for storing global application information.

Multiple choice technology programming languages
  1. To store the global information and variable definitions for the application

  2. Configures the time that the server-side codebehind module is called

  3. To configure the web server

  4. To configure the web browser

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

The Web.config file is the primary configuration file for ASP.NET applications, storing application-wide variables, database connection strings, and security settings.

Multiple choice technology architecture
  1. USE J2EE Architecture

  2. Model-View-Controller

  3. USE PHP and Javascript

  4. ASP.NET Web application

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

MVC (Model-View-Controller) is an architectural pattern that separates an application into three main components: Model (data), View (presentation), and Controller (logic). This separation allows each component to be developed, modified, and tested independently without affecting the others. J2EE, PHP/Javascript, and ASP.NET are technologies or platforms, not architectural patterns for separation of concerns.

Multiple choice technology architecture
  1. Insertion pattern

  2. Modifer Pattern

  3. No Such operation can be done once the web request is submited

  4. Intercepting Filter

  5. None of the above

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

The Intercepting Filter pattern (J2EE) allows pre-processing and post-processing of requests/ responses. Filters can modify, enhance, or add data to the request object before it reaches the target resource. Insertion and Modifer aren't standard patterns, and the claim that it's impossible is incorrect - filters exist specifically for this purpose.

Multiple choice technology architecture
  1. USE J2EE Architecture

  2. Model-View-Controller

  3. USE PHP and Javascript

  4. ASP.NET Web application

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

The Model-View-Controller (MVC) architectural pattern separates an application into three interconnected components: Model (data), View (presentation), and Controller (logic). This separation allows each part to be modified independently without affecting the others, meeting the requirement for individual modifiability. J2EE, PHP/JS, and ASP.NET are technologies, not architectural patterns that guarantee this separation.

Multiple choice technology platforms and products
  1. Http Session State Clustering

  2. File Service Clustering

  3. Time Service Clustering

  4. Object Clustering

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

WebLogic Server provides two primary cluster services: HTTP Session State Clustering (for maintaining session state across servers) and Object Clustering (for clustering RMI and EJB objects). These ensure high availability and failover capabilities. File Service and Time Service are not primary clustering services in WebLogic.

Multiple choice technology platforms and products
  1. MDBs support concurrent processing for both Topics and Queues.

  2. MDBs support concurrent processing for only Topics.

  3. MDBs support concurrent processing for only Queues

  4. MDBs support concurrent processing neither Topics nor Queues.

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

WebLogic Server 6.0 MDBs support concurrent processing for both Topics (pub/sub messaging) and Queues (point-to-point messaging). Multiple MDB instances can process messages concurrently, improving throughput. This is a key advantage of MDBs for handling high-volume JMS traffic.

Multiple choice technology platforms and products
  1. One J2EE specific deployment descriptor and one WebLogic specific deployment descriptors

  2. One J2EE specific deployment descriptor and two WebLogic specific deployment descriptors

  3. One J2EE specific deployment descriptor only

  4. One WebLogic specific deployment descriptor only

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

A CMP (Container-Managed Persistence) entity bean on WebLogic requires one J2EE standard deployment descriptor (ejb-jar.xml) and TWO WebLogic-specific descriptors (weblogic-ejb-jar.xml and weblogic-cmp-jar.xml). The weblogic-cmp-jar.xml specifically defines CMP mapping and is required in addition to the standard descriptors.

Multiple choice technology platforms and products
  1. Weight-based

  2. Random

  3. Round-robin

  4. None of the above

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

WebLogic Server uses round-robin as the default load balancing algorithm for clustered object stubs when no algorithm is specified. Round-robin distributes requests sequentially across available server instances, providing even load distribution. Weight-based and Random are alternative algorithms that must be explicitly configured.

Multiple choice technology platforms and products
  1. The amount of time that WebLogic Server waits between receiving chunks of data in an HTTP POST.

  2. The total amount of time that WebLogic Server spends receiving HTTP POST data.

  3. The time spent by WebLogic server to post data to other servers in the cluster.

  4. The number of bytes of data received in a POST from a single request.

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

MaxPostTimeSecs defines the total maximum time WebLogic Server will spend receiving HTTP POST data from a client. It is not the time between chunks, nor the time posting to other servers, nor a byte count.

Multiple choice technology platforms and products
  1. home

  2. Handle

  3. homeHandle

  4. EJBhomeHandle

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

In EJB, the homeHandle object is specifically designed to be serialized and later used to obtain a reference to the EJBHome object. The home interface itself cannot be serialized directly. Handle is for EJBObjects, not EJBHome.