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 programming languages
  1. True

  2. False

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

EJB stands for Enterprise JavaBeans, not Extensible JavaBean. EJB is a server-side software component that encapsulates the business logic of an application. The key word is 'Enterprise' - it's for building scalable, enterprise-level applications. Option B correctly identifies this as false.

Multiple choice technology programming languages
  1. True

  2. False

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

JMX stands for Java Management Extensions, not Java Management XML. It's a Java technology that supplies tools for managing and monitoring applications, system objects, and service-oriented networks. The False option is correct as the expansion is wrong.

Multiple choice technology programming languages
  1. True

  2. False

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

JRE stands for Java Runtime Environment, not Java Runtime Engine. It's a software bundle that provides the Java class libraries, Java Virtual Machine, and other components to run Java applications. The False option is correct as 'Environment' replaces 'Engine'.

Multiple choice technology programming languages
  1. True

  2. False

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

JSP correctly stands for JavaServer Pages. It's a server-side Java technology that enables developers to create dynamically generated web pages based on HTML, XML, or other document types. The True option correctly identifies this web technology.

Multiple choice technology programming languages
  1. True

  2. False

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

JSF (JavaServer Faces) is a Java specification for building component-based user interfaces for web applications. It simplifies web development by providing reusable UI components and managing state between requests.

Multiple choice technology packaged enterprise solutions
  1. JMS

  2. EJB

  3. SOAP

  4. HTTP

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

JMS (Java Message Service) requires a listener to receive and process messages from a queue or topic. The listener continuously monitors the messaging destination and invokes service processing when messages arrive. EJB uses direct RMI/IIOP calls, SOAP and HTTP use request/response patterns - none require continuous listeners like JMS.

Multiple choice technology packaged enterprise solutions
  1. requestor logs off

  2. requestor session expires

  3. user is timed out

  4. None

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

Thread-scoped data pages (formerly declare pages) live within the requestor thread context. When the requestor logs off, the session times out, or the session expires, the requestor context and its threads are destroyed, removing the pages from memory. This makes all three scenarios correct.

Multiple choice technology architecture
  1. Execution group

  2. Configuration Manager

  3. Queue Manager

  4. User Name Server

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

The Configuration Manager acts as the intermediary between the Message Broker toolkit and the execution groups (brokers). It stores the configuration information and deploys the message flows and bar files to the brokers. The Execution Group is where the message flows actually run, not the connection component.

Multiple choice technology architecture
  1. Http Cookies

  2. Memory Flags

  3. http request ID

  4. http Request Parameters

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

HTTP is a stateless protocol, so session management requires client-side persistence. Cookies are the standard mechanism - the server sends a Set-Cookie header with a session identifier, and the client returns it on subsequent requests. Memory flags, request IDs, and request parameters don't persist across requests.

Multiple choice technology architecture
  1. Remove the node and replace it with a healthy node

  2. Debug the node to see why the application fails from the specific node and fix the issue

  3. leave the nodes as it is.

  4. None of the above.

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

When a specific node causes application failure, the IMMEDIATE solution to restore availability is to remove that node and replace it with a healthy one. Debugging takes time and doesn't immediately solve the availability problem. Leaving it as-is keeps the application unavailable. The priority is restoring service quickly.

Multiple choice technology programming languages
  1. Servlet

  2. Runnable

  3. Serializable

  4. ActionListener

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

The Serializable interface in Java is a marker interface with no methods. It serves only to indicate that a class can be serialized - the actual serialization is handled by the JVM. Interfaces like Runnable, Servlet, and ActionListener all declare methods that must be implemented.