Computer Knowledge

Java Enterprise and Web Technologies

2,183 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. It offers option of sharing local variables and better run time efficiency

  2. Can be used to incorporate contents from static documents

  3. Provides benefit of automatic recompilation

  4. Can include dynamically generated output

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

The JSP include directive (<%@ include %>) incorporates static documents into JSPs at translation time, merging content before compilation. When the included file changes, the JSP automatically recompiles. However, it cannot handle dynamically generated output - dynamic inclusion requires jsp:include action. Local variables cannot be shared through the directive.

Multiple choice technology platforms and products
  1. Specify the trace string BOCore=all.

  2. Specify the trace string com.ibm.bpe.*=finest.

  3. Use the Log Analyzer to identify which components to trace.

  4. Set the trace string as described in the IBM Support document for Business Objects.

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

The correct approach is to consult IBM's official support documentation for the specific trace strings needed for Business Objects errors. Generic trace strings like 'BOCore=all' or 'com.ibm.bpe.*=finest' are not necessarily the right solution. Log Analyzer is a diagnostic tool, not a configuration method for enabling tracing.

Multiple choice technology platforms and products
  1. Use both WebSphere Application Server and WebSphere Process Server installers to create two installations in separate locations. The respective profiles will be created from each installation.

  2. Use the WebSphere Process Server installer from the WebSphere Process Server disks. This will install a complete version of WebSphere Application Server. Both types of profiles can be created from the resulting installation.

  3. Use the WebSphere Application Server installer first provided on the WebSphere Process Server disks. Use the WebSphere Process Server installer to add WebSphere Process Server functionality to the installation. Both types of profiles can be created from t

  4. Use the WebSphere Application Server installer first from the WebSphere Application Server disks. Use the WebSphere Process Server installer to add WebSphere Process Server functionality to the installation. Both types of profiles can be created from the

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

WebSphere Process Server V6.1 includes a complete WebSphere Application Server V6.1 installation. Installing WebSphere Process Server alone provides both WAS base functionality and WPS features, allowing creation of both profile types from a single installation.

Multiple choice technology platforms and products
  1. First Steps Console

  2. Profile Management Tool

  3. IBM Installation Manager

  4. Installation Verification Tool

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

The Installation Verification Tool (IVT) is a specialized utility provided by IBM to validate that WebSphere Process Server installations completed successfully. It runs comprehensive tests to verify all components are properly installed and functional. Other options like First Steps Console and Profile Management Tool serve different purposes - they help with configuration and profile creation, not installation verification.

Multiple choice technology platforms and products
  1. Custom Profile

  2. Application server

  3. Deployment manager

  4. WebSphere Process Server

  5. WebSphere Enterprise Service Bus (WESB)

  6. Cell (deployment manager and a federated application server)

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

When creating a profile for a WebSphere Process Server cluster node, you must select the WebSphere Process Server profile type in the Profile Management Tool. This profile type includes the BPEL runtime and Business Process Container required for BPEL applications. A Custom Profile would be insufficient as it lacks these process server-specific components. Application server profile alone doesn't include WebSphere Process Server features.

Multiple choice technology architecture
  1. Aspect Oriented Programming

  2. Inversion Of Control

  3. Object Oriented Programming

  4. Simple Pattern

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

Inversion of Control (IoC) is the design pattern where the Bean Factory manages object creation and dependency injection, separating configuration metadata from actual business logic code. This promotes loose coupling and easier testing.

Multiple choice technology programming languages
  1. /WEB-INF

  2. /appserverInstallDirectory/webapps/webappName/WEB-INF/xml

  3. /appserverInstallDirectory/webapps/webappName/WEB-INF

  4. /appserverInstallDirectory/webapps/webappName/WEB-INF/classes

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

In Java web applications, the deployment descriptor (web.xml) must be located in the WEB-INF directory. Valid locations include /WEB-INF directly, or the full path like /appserverInstallDirectory/webapps/webappName/WEB-INF. However, it cannot be in subdirectories like /WEB-INF/xml or /WEB-INF/classes - it must be directly in the WEB-INF folder itself.

Multiple choice technology programming languages
  1. The only way to access resources under the /WEB-INF directory is through appropriate servlet mapping directives in the deployment descriptor

  2. Server-side code has access to all resources in the web application

  3. Clients of web applications can't directly access resources in /WEB-INF/tld.

  4. A good place to keep a .tld (tag library file) is directly in the /WEB-INF directory.

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

In Java web applications: (A) is false because server-side code can also access /WEB-INF resources via ServletContext.getResourceAsStream(). (B) is true - server-side code has full access. (C) is true - clients cannot directly access /WEB-INF contents. (D) is true - /WEB-INF is the standard location for .tld files. The correct answers are B, C, D.

Multiple choice technology enterprise content management
  1. Java Visual Mode

  2. Java Virtual Machine

  3. Java Virtual Manual

  4. Java View Mode

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

JVM stands for Java Virtual Machine, which is the execution engine that runs Java bytecode by providing a runtime environment. It's not a visual mode, manual, or view mode - it's the fundamental component that enables Java's platform independence by abstracting the underlying hardware.

Multiple choice technology enterprise content management
  1. cd /Utils/companyx/inbound/postToERP

  2. cd /invoke/companyx.inbound/postToERP

  3. cd /ns/companyx/inbound/postToERP

  4. cd /ns/companyx.inbound/postToERP

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

In webMethods Integration Server, the namespace (ns) virtual directory is used to access services via FTP. The correct path syntax to navigate to a service in a package is cd /ns/ followed by the folder path and service name, which is /ns/companyx/inbound/postToERP.

Multiple choice technology enterprise content management
  1. Primitive Data Types

  2. Simple Data Types

  3. Complex Data Types

  4. IS schemas may not be edited

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

In webMethods Developer, when creating Integration Server schemas from XML documents, you can edit Simple Data Types to apply constraints or facets. Complex types represent structural elements derived from the XML schema and cannot be directly modified in the same way.