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 technology programming languages
  1. Create a JVM for applets.

  2. Extending a web server by providing dynamic web content.

  3. Storing information in applets.

  4. Loading buttons and menus.

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

This is a duplicate of question 151540 with options in different order. Servlets extend web server functionality by generating dynamic content in response to HTTP requests. They are server-side Java components used for web applications, processing forms, and interacting with databases to produce customized responses for each client request.

Multiple choice technology programming languages
  1. The server has a built-in JVM.

  2. The browser has a built-in JVM.

  3. The source code is interpreted by the browser.

  4. Applets don''t need a JVM.

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

Java applets can run in browsers because browsers include (or used to include) a built-in JVM or Java plugin that can execute Java bytecode. The browser provides the runtime environment needed to execute the applet code securely. Option A is incorrect - the server doesn't run the applet, the client browser does. Option C is wrong - browsers don't interpret Java source code directly. Option D is false - applets require a JVM to execute.

Multiple choice technology programming languages
  1. Java Software Programming

  2. JavaScript Server Program

  3. Java Server Program

  4. Java Server Programming

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

JSP stands for Java Server Pages, which is a technology for creating dynamic web content using Java. It is not related to JavaScript Server Program or Java Server Program.

Multiple choice technology
  1. J2EE application Server and also an HTTP web server

  2. Core application server

  3. com++ server

  4. Open tool

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

BEA WebLogic (now Oracle WebLogic Server) is a J2EE application server that also functions as an HTTP web server. It provides a complete runtime environment for enterprise Java applications. The other options (com++ server, Open tool) are incorrect.

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.