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 web technology
  1. Graphical, Console, Secure

  2. Graphical, Console, Silent

  3. Graphical, Network, Silent

  4. Interactive, Console, Silent

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

WebLogic Server supports three installation modes: Graphical mode uses a GUI installer, Console mode is for command-line interactive installation, and Silent mode uses an XML file for unattended installation. The 'Secure' option in A is not a standard installation mode, and 'Interactive' in D is not the official term (Graphical is the correct term).

Multiple choice technology web technology
  1. WL_HOME/common/weblogic.jar

  2. WL_HOME/common/admin.jar

  3. WL_HOME/server/lib/admin.jar

  4. WL_HOME/server/lib/weblogic.jar

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

The weblogic.Admin utility requires weblogic.jar in the classpath, which is located at WL_HOME/server/lib/weblogic.jar. This JAR contains the administration classes and necessary dependencies.

Multiple choice technology web technology
  1. Atlas

  2. Bullet

  3. Katmi

  4. Jolt

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

Microsoft's codename for their ASP.NET AJAX framework implementation was 'Atlas.' This was the official internal name during development before being branded as ASP.NET AJAX when released for the .NET Framework 2.0. Option A is correct. 'Bullet,' 'Katmai' (a SQL Server codename), and 'Jolt' are not associated with ASP.NET AJAX.

Multiple choice technology testing
  1. JMS

  2. JDBC

  3. RMI

  4. CPD2

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

JDBC (Java Database Connectivity) is the standard Java API for connecting to and executing queries on databases. In Rogers IVR architecture, the middleware business layer uses JDBC to access CPD2 (a database system). JMS is for messaging, RMI is for remote method invocation between Java objects, and CPD2 is the target database name - not an access method. JDBC is the correct Java-to-database bridge.

Multiple choice technology testing
  1. JMS

  2. JDBC

  3. RMI

  4. CPD2

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

JMS (Java Message Service) is the standard Java API for messaging using MQ (Message Queue) infrastructure. The middleware business layer uses JMS to communicate with the Supersystem through MQ queues. JDBC is for database connectivity, RMI for remote method invocation, and CPD2 appears to be a database name, not a communication protocol.

Multiple choice technology architecture
  1. svcutil.exe

  2. XSD.exe

  3. WCFClientGenerationUtil.exe

  4. All of the above

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

svcutil.exe is indeed the standard Microsoft utility for generating WCF client proxies and configuration from service metadata. It reads service metadata (WSDL/XSD) and generates client code and configuration files. The other options are not WCF-specific client generation tools.

Multiple choice technology architecture
  1. DataContractSerializer

  2. XML Serializer

  3. All of the above

  4. Binary serialization

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

DataContractSerializer is the default and recommended serialization mechanism for WCF. It provides better performance than XMLSerializer and is opt-in rather than opt-out. While you can configure WCF to use XMLSerializer using the [XmlSerializerFormat] attribute, DataContractSerializer is the out-of-the-box default.

Multiple choice technology web technology
  1. True

  2. False

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

Spring Framework is designed to enable POJO (Plain Old Java Object) programming. Unlike earlier J2EE frameworks requiring special interfaces or inheritance, Spring allows you to work with simple Java classes. This promotes testability and loose coupling without being tied to framework-specific APIs.

Multiple choice technology web technology
  1. Light Weight

  2. IOC

  3. Bean Factory

  4. AOP

  5. MVC Framework

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

Spring Framework features include being lightweight, Inversion of Control (IoC) container, Aspect-Oriented Programming (AOP), and MVC Framework. Bean Factory is actually PART of Spring's IoC container, not a separate top-level feature - it's the implementation of IoC. The question marks Bean Factory as incorrect, which is accurate since it's included within IoC.

Multiple choice technology web technology
  1. AOP

  2. IOC

  3. Container

  4. MVC Framework

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

Loose coupling in Spring is achieved through Inversion of Control (IoC). The IoC container manages object creation and dependency injection, allowing objects to remain decoupled from their dependencies. AOP handles cross-cutting concerns. Container is the mechanism, not the principle. MVC is for web layer.

Multiple choice technology web technology
  1. Interface Injection

  2. Getter Injection

  3. Constructor Injection

  4. Destructor Injection

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

Constructor Injection is a core dependency injection type supported by Spring Framework. Interface Injection, Getter Injection, and Destructor Injection are not standard injection methods in Spring.

Multiple choice technology web technology
  1. IOC

  2. Container

  3. AOP

  4. MVC Framework

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

The Spring Container (specifically the ApplicationContext or BeanFactory) is responsible for managing the life cycle and configuration of application objects (beans). IoC (Inversion of Control) is the underlying design pattern, not the concrete framework feature.

Multiple choice technology web technology
  1. Spring Context

  2. Core Container

  3. Spring AOP

  4. Spring DAO

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

Spring Context (or Spring ApplicationContext) indeed includes enterprise services like JNDI, EJB, email, internationalization, validation, and scheduling. Core Container manages beans, AOP handles aspects, and DAO provides database abstraction.