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
  1. It consists only Admin

  2. An inter-related set of WebLogic Server resources managed as a unit

  3. It contains only Managed server.

  4. None

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

A WebLogic domain is an inter-related set of WebLogic Server resources (servers, clusters, applications) that are managed as a single administrative unit. It includes both Admin servers and Managed servers, ruling out A and C.

Multiple choice technology
  1. server.xml

  2. serverAttributes.xml

  3. config.xml

  4. none

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

When you delete a Managed Server through the Administration Server Console, WebLogic automatically removes the server's configuration from config.xml, which is the central domain configuration file. This file stores all server properties, attributes, and resources for the entire domain. The other files listed (server.xml, serverAttributes.xml) are not standard WebLogic configuration files.

Multiple choice technology
  1. A WebLogic Server cluster consists of Single WebLogic Server server instances running

  2. A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously

  3. A WebLogic Server cluster consists of Two WebLogic Server server instances running

  4. None

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

A WebLogic Server cluster is a group of multiple WebLogic Server instances that run simultaneously and work together to provide scalability, reliability, and high availability. Clusters can contain any number of server instances (not just one or two), and they appear to clients as a single entity. Option B correctly describes the multi-instance nature.

Multiple choice technology
  1. Node Manager is a Java program that enables you to start and kill WebLogic Admin

  2. Node Manager is a Java program that enables you to start and kill WebLogic Managed

  3. Node Manager is a Oracle program that enables you to start and kill WebLogic Managed

  4. None

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

Node Manager is a Java utility provided by WebLogic that enables you to start, stop, and restart Managed Server instances remotely. It is specifically designed for managing Managed Servers, not the Administration Server (which is typically started directly). Option B correctly identifies its purpose and target.

Multiple choice technology
  1. weblogic.properties

  2. weblogic.policy

  3. weblogic.licenses

  4. None

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

The weblogic.policy file is where you update license information and security permissions for WebLogic Server. This Java policy file defines the security permissions and licensing constraints for the server. The weblogic.properties and weblogic.licenses files are not the correct locations for license configuration.

Multiple choice technology web technology
  1. Javax.servlet.Filter

  2. Javax.servlet.FilterChain

  3. Javax.servlet.FilterConfig

  4. None of the above

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

The Intercepting Filter pattern in Java EE is implemented by creating a class that implements the javax.servlet.Filter interface. This interface defines methods like doFilter() that allow preprocessing and postprocessing of requests, enabling tasks like authentication, logging, and compression.

Multiple choice technology web technology
  1. javax.servlet.ServletConfig

  2. javax.servlet.Servlet

  3. javax.servlet.ServletContext

  4. All of the above

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

The Front Controller pattern is implemented by creating a servlet that implements the javax.servlet.Servlet interface (typically by extending HttpServlet). This allows a single controller to handle all requests and delegate to appropriate handlers. ServletConfig and ServletContext are configuration objects, not handler interfaces.

Multiple choice technology web technology
  1. Action

  2. ActionForm

  3. ActionServlet

  4. None of the above

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

In Struts 1.x, ActionServlet serves as the Front Controller - it's the single entry point that receives all HTTP requests and delegates them to appropriate Action classes based on the struts-config.xml mapping. Action classes handle business logic, ActionForm holds form data, but ActionServlet is the centralized dispatcher implementing Front Controller.

Multiple choice technology programming languages
  1. in an online exchange between several open source developers

  2. over a long holiday weekend

  3. as a commercial package

  4. None of the above

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

Struts was originally developed by Craig McClanahan over a long holiday weekend in 2000 as a way to solve common web application development problems. It was not developed through an online exchange (A), not as a commercial package (C), and was donated to the Apache Software Foundation.

Multiple choice technology programming languages
  1. application

  2. resources

  3. ApplicationResources

  4. messages

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

The Application Resources file (which contains i18n messages) is configured via the servlet init-param named 'application' in web.xml. This parameter specifies the base name of the resource bundle. Options B, C, and D are incorrect parameter names for this configuration.