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. a. Two Administration server and one Managed servers

  2. b. One Administration server and optional Managed servers

  3. c. One Administration server and two Managed servers

  4. d. None of the above

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

A WebLogic domain must have exactly one Administration Server and can have zero or more Managed Servers. The Administration Server manages the domain configuration, while Managed Servers host applications.

Multiple choice technology web technology
  1. a. HTTP server

  2. b. Web server

  3. c. Application server

  4. d. None of the above

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

WebLogic Server is an application server that provides a runtime environment for Java EE applications. It supports enterprise features like EJB, JMS, JPA, and clustering, which distinguish it from simple web servers that primarily serve static content or handle HTTP requests.

Multiple choice technology web technology
  1. a. Only WAR files

  2. b. Only EAR files

  3. c. Only SAR files

  4. d. All of the above.

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

WebLogic Server supports deployment of multiple archive types: WAR files for web applications, EAR files for enterprise applications, SAR files for service archives, and JAR files for libraries or standalone components. All these formats can be deployed to WebLogic domains.

Multiple choice technology web technology
  1. a. Development

  2. b. Staging

  3. c. Production

  4. d. None of the above

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

WebLogic Server operates in two modes: Development mode, which enables auto-deployment and provides verbose logging for debugging, and Production mode, which optimizes performance and security with stricter settings. Staging is not a standard WebLogic operational mode.

Multiple choice technology web technology
  1. a. Graphical, Console, Secure

  2. b. Graphical, Console, Silent

  3. c. Graphical, Network, Silent

  4. d. Interactive, Console, Silent

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

WebLogic Server supports three installation modes: Graphical mode (GUI-based wizard), Console mode (command-line interactive), and Silent mode (unattended using XML configuration). 'Secure' and 'Network' are not valid installation modes in WebLogic.

Multiple choice technology web technology
  1. a. Server Log

  2. b. WebLogic Console

  3. c. Version.txt

  4. d. weblogic.Admin utility

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

Version.txt is not a standard WebLogic file or method for version identification. Server logs contain version information at startup, the WebLogic Console displays the version prominently, and the weblogic.Admin utility can report version through appropriate commands. Version.txt simply doesn't exist in a standard WebLogic installation.

Multiple choice technology web technology
  1. a. WL_HOME/common/weblogic.jar

  2. b. WL_HOME/common/admin.jar

  3. c. WL_HOME/server/lib/admin.jar

  4. d. WL_HOME/server/lib/weblogic.jar

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

The weblogic.Admin utility classes are contained within weblogic.jar, located in the WL_HOME/server/lib directory of the WebLogic installation. This JAR must be included in the classpath to execute admin commands - the other paths either don't exist or contain the wrong JAR files for this utility.

Multiple choice technology web technology
  1. a. Two Administration server and one Managed servers

  2. b. One Administration server and optional Managed servers

  3. c. One Administration server and two Managed servers

  4. d. None of the above

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

A WebLogic domain must contain exactly one Administration Server, which acts as the central control point, and zero or more optional Managed Servers that host the actual applications.

Multiple choice technology web technology
  1. It has access to a ServletConfig

  2. It has access to a ServletContext

  3. It is only called once

  4. It can be overridden

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

The jspInit() method is called once when the JSP is first initialized, similar to servlet init(). It has access to both ServletConfig (getServletConfig()) and ServletContext (getServletContext()), and it can be overridden like any JSP method. All four statements are correct.

Multiple choice technology web technology
  1. response.setHeader(CONTENT-LENGTH,"numBytes");

  2. response.setHeader("CONTENT-LENGTH","numBytes");

  3. response.setStatus(1024);

  4. response.setHeader("CONTENT-LENGTH",1024);

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

The setHeader method in HttpServletResponse requires both parameters to be strings. Option B correctly passes the header name "CONTENT-LENGTH" and its value "numBytes" as quoted string literals. Option A is incorrect because CONTENT-LENGTH is not quoted, while D passes an integer instead of a string.

Multiple choice technology databases
  1. Enable instance failover

  2. Configure shared server

  3. Enable database failover

  4. Enable connect-time failover

  5. Enable Transparent Application Failover

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

Connect-time failover is a client-side feature that automatically forwards connection requests to another listener if the primary listener fails to respond. This is configured in tnsnames.ora with the FAILOVER=ON parameter and multiple ADDRESS lists. Instance failover and TAF are different mechanisms for handling failures after connection is established.

Multiple choice technology web technology
  1. True

  2. False

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

A web service is indeed defined as programmable application logic that can be accessed over standard web protocols like HTTP, SOAP, or REST. This is the standard industry definition - web services expose functionality through standardized web-based interfaces that allow different applications to communicate regardless of their underlying platforms or implementation languages.

Multiple choice technology web technology
  1. a. WSDL

  2. b. Web Services Directory

  3. c. UDDI

  4. d. All of the above

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

UDDI (Universal Description, Discovery, and Integration) is the protocol used for publishing and discovering web services in directories. Option C is correct. Option A (WSDL) is for describing services, not directory publishing. Option B is a generic description, not a protocol. Option D is incorrect because UDDI is the specific standard, not 'all of the above'.