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 web technology
  1. Flex

  2. JSP

  3. Silver Light

  4. Dot net

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

Projectserver.nielsen.com uses Dot Net (Microsoft .NET) technology. This is consistent with Microsoft-based enterprise project management systems. Flex (A) and Silverlight (C) are RIA frameworks, not backend server technologies. JSP (B) is Java-based, while .NET is Microsoft's framework.

Multiple choice technology web technology
  1. Clean separation of concerns between HTML and Java

  2. Automated state management

  3. conjunction with JSP and custom tag libraries

  4. Abstraction away from Servlet API and HTTP protocol details

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

Wicket's key benefits are: clean HTML/Java separation (pages are pure XHTML with minimal Wicket tags), automated state management (no manual HTTP session handling), and abstraction from Servlet/HTTP protocol details (developers work with Java components, not HTTP requests directly). Option C describes JSP/taglibs, which Wicket specifically avoids.

Multiple choice technology web technology
  1. It is not particularly object-oriented.

  2. You work with hierarchies of components and design your application as such.

  3. Unless you output HTML directly from your Java code you still need to learn another major technology JSP plus custom tag libraries in order to produce output HTML pages.

  4. A very clean object-oriented and component based approach.

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

Struts is considered outdated because: (A) it's not truly object-oriented - Action classes are HTTP-driven rather than OO-designed; (C) it requires learning JSP and custom taglibs for HTML output. Options B and D incorrectly describe Struts - B mentions hierarchies (not a Struts strength) and D claims it's clean OO (which it is not).

Multiple choice technology web technology
  1. Each Action class defines an abstraction, but the abstraction is determined by the HTTP procotol request mechanism rather than by an object-oriented analysis

  2. Wicket is fully object-oriented. You work with hierarchies of components and design your application as such.

  3. Wicket markup files are as close to pure HTML as it is possible to get. Where Wicket does introduce content into the markup it is very clean and complies with all XHTML standards

  4. Wicket is based around intercepting each HTTP request to a web application and directing it to a specific Action class that handles the request

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

Wicket solves Struts' problems by: (B) being fully object-oriented with component hierarchies, and (C) using pure HTML markup that complies with XHTML standards. Option A describes Struts' problem (Action classes tied to HTTP), and D describes Struts' architecture (not Wicket's).

Multiple choice technology web technology
  1. JSP

  2. Servlets

  3. Ajax

  4. Applet

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

With Apache Wicket, developers get the benefits of Ajax functionality (partial page updates, dynamic content refresh) without writing raw JavaScript code. Wicket's Ajax-enabled components handle all the complex Ajax plumbing behind the scenes while you work with just Java and HTML. The correct answer is Ajax.

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 language used to describe the public interface, operations, parameters, and access endpoints of a web service. SOAP is the protocol used to call them, and UDDI is used for discovery.

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

Apache Axis is primarily a tool for generating web services from Java classes (B) and for generating web service stubs/proxies (C). While Axis can work with web services (A), describing it as 'a web service' is not its primary definition - it's a framework/tool for creating and consuming web services. Option D 'All of the above' is incorrect because A is misleadingly worded.

Multiple choice technology testing
  1. Web Service Discovery Logic

  2. Web Service Dynamic Link

  3. Web Service Discovery Latency

  4. Web Services Description Language

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

WSDL (Web Services Description Language) is an XML-based language that describes the interface, operations, parameters, and location of a web service. It enables clients to understand how to invoke the service. The other options are not standard web service acronyms.

Multiple choice technology programming languages
  1. Mapping files

  2. http.conf

  3. XML Configuration hibernate.cfg.xml

  4. web.config

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

Hibernate configuration is typically defined using programmatic mapping files and XML configuration files like hibernate.cfg.xml. Config files like http.conf (Apache Web Server) and web.config (ASP.NET) are completely unrelated to Hibernate.

Multiple choice technology programming languages
  1. Session is a light weight non-threadsafe object

  2. You can share the session between threads

  3. Session represents a single unit-of-work with the database

  4. Session is the primary interface for the persistence service

  5. A session loads database connections using lazy-loading

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

Hibernate Session objects are explicitly designed to be non-threadsafe. Each thread should have its own Session instance to prevent race conditions and data corruption. The Session is lightweight but must not be shared across threads.

Multiple choice technology programming languages
  1. Configuration interface

  2. Session interface

  3. Query and Criteria interfaces

  4. User interface

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

Configuration, Session, Query, and Criteria are core Hibernate interfaces used to establish settings, manage database connections, and run queries. The User interface is not part of Hibernate's core framework APIs.

Multiple choice technology programming languages
  1. Holds a mandatory (first-level) cache of persistent objects, used when navigating the object graph or looking up objects by identifier

  2. Created during application initialization

  3. Wraps a JDBC connection

  4. Act as session Factory

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

The Hibernate Session interface wraps a JDBC connection and provides methods for CRUD operations. It also holds a first-level cache and is created by SessionFactory (not during application initialization - that's when SessionFactory is created). The Session itself does not act as a factory.

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.