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 platforms and products
  1. Build automation using Ant Script

  2. Integrating J2EE Application servers

  3. Plug-in development by the user

  4. Can be used as a J2EE application server

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

Eclipse supports build automation through Ant scripts, integrates with J2EE application servers for deployment, and allows users to develop their own plugins. However, Eclipse is an IDE and development platform, not an application server itself - it cannot host J2EE applications.

Multiple choice technology platforms and products
  1. .mymetadata file

  2. .myeclipse folder

  3. an ejb-jar.xml file

  4. An application.xml

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

When creating a Web Application in MyEclipse, the .mymetadata file is automatically added to the project structure. This file stores MyEclipse-specific configuration and deployment settings for the web application. The .myeclipse folder and deployment descriptors like ejb-jar.xml serve different purposes.

Multiple choice technology web technology
  1. Pass an instance of java.util.Properties to Configuration.setProperties().

  2. Place hibernate.properties in a root directory of the classpath.

  3. Set System properties using java -Dproperty=value.

  4. All the above

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

Hibernate configuration can be passed in multiple ways: programmatically via Configuration.setProperties() with a Properties object, declaratively via hibernate.properties file in the classpath root, or as JVM system properties using -D flags. All three approaches are valid.

Multiple choice technology web technology
  1. config.createSessionFactory()

  2. config.getSessionFactory()

  3. config.buildSessionFactory()

  4. config. SessionFactory.newInstance()

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

In Hibernate, the Configuration object is used to build a SessionFactory using the buildSessionFactory() method. This reads all configuration files and mappings, then creates the heavyweight SessionFactory instance that manages connections to the database.

Multiple choice technology web technology
  1. <hibernate-configuration>

  2. <hibernate-config>

  3. <hibernate-apps>

  4. None of the above

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

The hibernate.cfg.xml configuration file uses as its root element. This element wraps all Hibernate configuration properties like database connection settings, dialect, and mapping file references.

Multiple choice technology web technology
  1. Application object.

  2. Session object.

  3. Response object.

  4. Request object.

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

The ASP.NET Session object encapsulates and maintains the state of a specific client/browser across multiple HTTP requests. Each user session stores unique data (like login state, cart items) keyed by session ID. Application stores global shared state, Request handles incoming HTTP data, Response sends output.

Multiple choice technology web technology
  1. Application object.

  2. Session object.

  3. Response object.

  4. Request object.

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

The ASP.NET Application object maintains data shared across all users/sessions in the application. Unlike Session (per-user data), Application state is global - any user can read or write it. Request handles per-request data, Response sends output to client. Application is ideal for global counters, shared configuration, or cache data.

Multiple choice technology programming languages
  1. Script language declarations, scriplets and expressions.

  2. JSP standard actions

  3. JSP standard directives

  4. All the Above

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

The Java Server Pages (JSP) specification defines scriptlet elements (declarations, scriptlets, expressions), standard actions (like jsp:useBean, jsp:include), and standard directives (page, include, taglib). Therefore, all options are correct.

Multiple choice technology programming languages
  1. Applet

  2. Servlet

  3. Application

  4. Midlet

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

When a JSP page is first requested, it is translated and compiled into a Servlet. The generated Servlet class extends HttpJspPage and implements the _jspService() method that contains the page logic. This Servlet is then instantiated and handles subsequent requests. Applets, Applications, and Midlets are different Java application types.

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.