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
  1. URL Rewrite

  2. RequestFilteringModule

  3. UrlAuthorizationModule

  4. IpRestrictionModule

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

The URL Rewrite module allows administrators to create powerful rules using regular expressions and wildcards to transform complex URLs into clean, user-friendly, and SEO-optimized URLs without changing the underlying application structure.

Multiple choice technology web technology
  1. Singleton

  2. PerSession

  3. PerCall

  4. IsRequired

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

WCF's default instancing mode is PerCall, where a new service object is created for each operation invocation and disposed after the response. This provides better scalability and statelessness unless another mode (PerSession or Single) is explicitly configured.

Multiple choice technology web technology
  1. Its a protocol for calling services

  2. Its a registry for discovering services

  3. Its an xml file for defining the methods that can be called over the web.

  4. None of the above

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

WSDL (Web Services Description Language) is an XML-based format used to define the methods, parameters, and access points of a web service. SOAP is the protocol used to call these services, and UDDI is the registry directory for discovering them, making the other options incorrect.

Multiple choice technology web technology
  1. Open Standard

  2. Secure

  3. Text Based Response

  4. All of Them

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

Web services advantages: (A) Open Standards - XML/SOAP are W3C standards, (B) Secure - CAN be secured with WS-Security/HTTPS, (C) Text-based - XML is human-readable, but security isn't automatic. 'All of them' is wrong because security requires additional configuration.

Multiple choice technology web technology
  1. A Web service

  2. A tool to generate Web services from java classes.

  3. A tool to generate web service stubs.

  4. All of the above.

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

Axis is Apache's tool for web services in Java: (B) Generates services from Java classes (bottom-up), (C) Generates stubs/proxies from WSDL (top-down). It's NOT the service itself (A) and not a single 'all-in-one' tool (D) - it handles generation and deployment.

Multiple choice technology programming languages
  1. Mapping files can be added to Configuration in the application code

  2. They can be configured in hibernate.cfg.xml using the <mapping> elements

  3. Both a and b

  4. None of the above

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

Hibernate mapping files can be configured both programmatically by adding them to the Configuration object in application code, and declaratively by using elements in hibernate.cfg.xml. Both approaches are valid and can be used together, giving developers flexibility in their configuration approach.

Multiple choice technology
  1. ABAP engine

  2. J2EE engine

  3. .NET engine

  4. JCA (Java Connector Architecture)

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

The SAP XI (Exchange Infrastructure) Adapter Engine is built on the J2EE (Java 2 Enterprise Edition) platform, which provides the runtime environment for Java-based adapters and cross-system communication. ABAP is SAP's proprietary language, .NET is Microsoft's framework, and JCA is a connector architecture - none serve as XI's foundational engine.

Multiple choice technology
  1. caching Java applications

  2. to write Java code

  3. to execute Java mapping

  4. to perform JMS connectivity

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

Java Web Start (JNLP) enables deploying and caching Java applications from the web, allowing users to launch full-featured Java applications with a single click while maintaining local copies for offline use. It's not for writing code, executing mappings, or JMS connectivity - those are separate Java technologies.

Multiple choice technology
  1. com.sap.api.mapping.StreamTransformation

  2. com.sap.api.mapping.aii.StreamTransformation

  3. com.sap.mapping.api.StreamTransformation

  4. com.sap.aii.mapping.api.StreamTransformation

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

Java Mapping in SAP XI/PI requires implementing com.sap.aii.mapping.api.StreamTransformation interface, which defines the execute() method for transformation logic and setParameter() for runtime configuration. Options A, B, and C have incorrect package hierarchies - 'aii' (Application Integration Infrastructure) is required.

Multiple choice technology web technology
  1. Mapping files can be added to Configuration in the application code

  2. They can be configured in hibernate.cfg.xml using the <mapping> elements

  3. both a and b

  4. none of the above

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

Hibernate supports BOTH configuration methods: programmatically adding mapping files via Configuration.addResource() or configuring them in hibernate.cfg.xml using elements. Both approaches are valid.

Multiple choice technology programming languages
  1. session.createQuery();

  2. session.createCriteria();

  3. session.createSQLQuery();

  4. session.lod();

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

HQL (Hibernate Query Language) is executed using session.createQuery(), which takes an HQL string and returns a Query object. Option B uses Criteria API (not HQL). Option C creates native SQL queries. Option D is not a valid Hibernate method.

Multiple choice technology programming languages
  1. Required

  2. Not Required

  3. None of the above

  4. None

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

Hibernate does NOT require persistent classes to implement Serializable. Serializable is only needed if you want to store objects in HttpSession or replicate them across a clustered cache. Plain POJOs can be persisted without implementing Serializable. Option A is incorrect.

Multiple choice technology embedded technologies
  1. Central Provider

  2. Content Provider

  3. Data Provider

  4. None of the above

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

In Android, a ContentProvider is the standard component designed to securely share and expose an application's private data to other applications. Central Provider and Data Provider are incorrect terminology and do not exist in the Android SDK components.