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. <windows allowedImpersonationLevel="Delegation"/>

  2. <windows allowedImpersonationLevel="Impersonation"/>

  3. <windows allowedImpersonationLevel="Identification"/>

  4. <windows allowedImpersonationLevel="Impersonation" allowNtlm="false"/>

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

Delegation is required when the WCF service needs to access remote resources on behalf of the client (multi-hop scenario). Impersonation only allows accessing local resources on the service machine. Identification allows the service to identify the client but cannot impersonate at all.

Multiple choice technology programming languages
  1. basicHttpBinding

  2. netTcpBinding

  3. netNamedPipeBinding

  4. wsDualHttpBinding

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

wsDualHttpBinding does not support streaming because it uses HTTP for both request and response channels, and HTTP is inherently message-based (no streaming). TCP and named pipe protocols (netTcpBinding, netNamedPipeBinding) support streaming. basicHttpBinding can support streaming with appropriate transferMode settings.

Multiple choice technology programming languages
  1. System.Service

  2. System.Data

  3. System.ServiceModel

  4. System.Web

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

The System.ServiceModel namespace contains the core classes, interfaces, and structures required to build and consume WCF service clients and hosts. Namespaces like System.Web, System.Data, and System.Service do not contain these WCF-specific constructs.

Multiple choice technology programming languages
  1. IDispatchMessageInspector

  2. IAttachMessageInspector

  3. IlogMessageInspector

  4. IMessageInspector

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

IDispatchMessageInspector is the service-side interface for message inspection and logging. It provides AfterReceiveRequest (inspect incoming messages) and BeforeSendReply (inspect outgoing responses) methods. IClientMessageInspector is the client-side equivalent.

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 implementing the javax.servlet.Filter interface. This interface defines methods like init(), doFilter(), and destroy() that allow pre/post-processing of requests and responses. FilterChain and FilterConfig are supporting interfaces used by filters but are not the primary interface to implement.

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). The servlet acts as a centralized entry point for all requests. ServletConfig and ServletContext are interfaces for configuration and context access, not for implementing the controller itself.

Multiple choice technology web technology
  1. Action

  2. ActionForm

  3. ActionServlet

  4. None of the above

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

In Struts framework, ActionServlet implements the Front Controller pattern. It receives all HTTP requests and delegates them to appropriate Action classes based on the struts-config.xml configuration. ActionServlet is the single entry point that handles common request processing tasks like navigation, workflow, and security, which is the essence of Front Controller pattern.

Multiple choice technology databases
  1. Mapplets

  2. Sessions

  3. Transformations

  4. Workflows

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

A mapping in Informatica PowerCenter must include transformations to process and route data from sources to targets. Transformations define the data manipulation logic (filtering, joining, aggregating, etc.). Mapplets are optional reusable components, while Sessions and Workflows are execution components that manage runtime - they are not part of the mapping structure itself.

Multiple choice technology platforms and products
  1. farms

  2. web applications

  3. site collections

  4. web parts

  5. web sites

  6. sites

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

WSS 3.0 hierarchy is: Farms (top-level server grouping) → Web Applications (IIS websites) → Site Collections (logical grouping) → Sites (actual team sites). 'Web parts' are components placed on pages, not a hierarchy level. 'Web sites' (option E) is ambiguous - the correct term in the hierarchy is 'sites' (option F), and web applications already represent the IIS web site level.

Multiple choice technology
  1. Java automatically works both within a web page and stand-alone.

  2. You have to write separate pieces of Java if you want to run them in both a web page and stand-alone, although many

  3. If you're careful, the same piece of Java can be used both as a stand-alone program and within a web page.

  4. You run your Java first in a web page. A button then lets you save a local copy which you can run stand-alone

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

Java's 'write once, run anywhere' design allows the same code to run as standalone application or applet if designed properly without platform-specific dependencies.

Multiple choice technology
  1. A Unix or Linux workstation which (in practice) would have a permanent link to the internet.

  2. The applet in .class format

  3. A licensed copy of the Java Development Kit, which comes with the appropriate rights for any programs you create

  4. A Java-enabled web server

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

Java applets are distributed as compiled .class files (bytecode) that browsers download and execute via JVM. Source code or JDK license is not required for users.

Multiple choice technology
  1. A Java application for remote access to Microsoft servers via the Internet

  2. The recommended way of having multiple invocations of the same program running on a single system

  3. The pre-cursor of Java, now largely superceded

  4. A way of having a Java program or applet on one computer use Java methods and objects that are residing on another

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

RMI (Remote Method Invocation) enables a Java client to invoke methods on objects residing on remote servers, enabling distributed Java applications.