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. ParameterNotFoundException is thrown.

  2. Some other exception is thrown.

  3. "Elmore Leonard" is output on the web page

  4. An application failure occurs

  5. null is output on the web page.

  6. A 404 error occurs in the browser.

Reveal answer Fill a bubble to check yourself
D,F Correct answer
Multiple choice technology programming languages
  1. LogFilter, AuditFilter, EncryptionFilter

  2. LogFilter, EncryptionFilter

  3. LogFilter

  4. EncryptionFilter, AuditFilter, LogFilter

  5. EncryptionFilter, LogFilter

  6. AuditFilter, EncryptionFilter, LogFilter

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

Filter execution order prioritizes url-pattern mappings before servlet-name mappings. EncryptionFilter uses a URL pattern matching direct requests, while LogFilter matches by servlet name, placing it second. AuditFilter does not execute because it is configured only for FORWARD dispatchers.

Multiple choice technology programming languages
  1. DispatcherNotFoundException.

  2. Runtime error because of incorrectly formed parameter to getNamedDispatcher() method.

  3. NullPointerException.

  4. ServletB can obtain request attribute javax.servlet.forward.request_uri.

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

The getNamedDispatcher method expects a servlet name, not a path starting with a slash. Passing a path like /ServletB will fail to find the servlet and return null, causing a NullPointerException when dispatcher.forward is called on the resulting null reference.

Multiple choice technology packaged enterprise solutions
  1. JRAD

  2. WSHL

  3. JRLY

  4. BBL

  5. WSDL

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

JOLT (Java Open Language Toolkit) based security requires the JRLY service to be running on the webserver. This service handles the security layer between the webserver and application server. The other options (JRAD, WSHL, BBL, WSDL) are unrelated to JOLT security services.

Multiple choice technology
  1. JAVA Archival

  2. JAVA Archive

  3. JAVA Architecture

  4. JAVA Architect

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

JAR stands for Java Archive, a file format used to aggregate many Java class files and associated metadata into a single file for distribution. It's based on the ZIP format with a specific manifest file.

Multiple choice technology web technology
  1. True

  2. False

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

The statement is False. HTML pages and applets are client-side technologies that execute in the browser on the client machine, not on the J2EE server. The J2EE server serves these resources but doesn't manage or execute them - that happens on the client side.

Multiple choice technology web technology
  1. Application Client

  2. Applet

  3. Java Bean

  4. EJB

  5. Web

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

Java Bean is NOT a J2EE container or application component. The J2EE containers are: Application Client Container, Applet Container, Web Container (for servlets/JSP), and EJB Container (for enterprise beans). JavaBean is a Java class convention for reusable components, not a J2EE container type.

Multiple choice technology web technology
  1. True

  2. False

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

The statement is False. J2EE components cannot interact directly - they must go through protocols and APIs defined by the J2EE specification. For example, web components communicate with EJBs through remote/local interfaces, not direct method calls. This loose coupling enables the container's services (transactions, security, etc.).

Multiple choice technology web technology
  1. message driven bean

  2. entity bean

  3. session bean

  4. page bean

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

Page bean is NOT a valid enterprise bean type. EJB specification defines only three types: session beans (stateful/stateless), entity beans (now replaced by JPA entities), and message-driven beans. There is no such thing as a 'page bean' in EJB.

Multiple choice technology web technology
  1. Mapping

  2. Deployment Desciptor

  3. Navigation

  4. Component

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

The deployment descriptor is an XML file that contains configuration information for J2EE components. It describes how the application should be deployed, including settings for servlets, EJBs, security roles, and resource references. The descriptor allows the application assembler and deployer to customize the application without modifying source code.

Multiple choice technology web technology
  1. Application Client

  2. Applet

  3. Web

  4. EJB

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

Applets run within a browser sandbox and are subject to strict security restrictions. They cannot directly access databases or other resources on the client or server for security reasons. Application clients, web components, and EJBs can all access databases when properly configured, making applet the only component that generally cannot.

Multiple choice technology web technology
  1. JMS

  2. Java IDL

  3. JDBC

  4. JAF

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

Java IDL (Interface Definition Language) allows Java applications to invoke external CORBA objects using the IIOP (Internet Inter-ORB Protocol). It provides interoperability between Java and CORBA-based systems. JDBC is for databases, JMS for messaging, and JAF for data type handling.