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
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.
A
Correct answer
Explanation
JAAS is indeed Java Authentication and Authorization Service. It's a Java security API that enables authentication and authorization for user access control. The True option correctly identifies the full form of this Java security technology.
A
Correct answer
Explanation
JAXP correctly stands for Java API for XML Processing. It's a Java API that provides a standard interface for processing XML documents using DOM, SAX, and XSLT. The True option accurately identifies this XML processing API.
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.
B
Correct answer
Explanation
JNDI stands for Java Naming and Directory Interface, not Java Network and Directory Interface. It's a Java API for a directory service that allows Java software clients to discover and look up data and objects via a name. The False option is correct as 'Naming' replaces 'Network'.
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'.
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.
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.
B
Correct answer
Explanation
JTA stands for Java Transaction API, not Java Transport API. JTA provides a standard interface for managing transactions in Java, allowing coordination of distributed transactions across multiple resources.
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.
-
requestor logs off
-
requestor session expires
-
user is timed out
-
None
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.
-
Execution group
-
Configuration Manager
-
Queue Manager
-
User Name Server
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.
-
Http Cookies
-
Memory Flags
-
http request ID
-
http Request Parameters
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.
-
Remove the node and replace it with a healthy node
-
Debug the node to see why the application fails from the specific node and fix the issue
-
leave the nodes as it is.
-
None of the above.
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.
-
Servlet
-
Runnable
-
Serializable
-
ActionListener
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.