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. to keep strawberry jam fresh

  2. to store all the currently in-use Java programs on a browser

  3. as a container for a number of files for distribution over a network so that only the jar has to be transfered, and

  4. as a central resource on a web server from which users can load just the Java programs they need without having to

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

JAR (Java Archive) bundles multiple class files and resources into one compressed file for efficient distribution - only one HTTP request needed instead of many.

Multiple choice technology
  1. A piece of Java running within a web browser

  2. A short application program which resides completely in a single file

  3. An application which isn't invoked directly by the user, but is called up from within another application as, and

  4. A piece of Java which is only allowed to produce graphic output and cannot write to the screen in any other way.

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

An applet is a Java program designed to be transmitted over the Internet and executed within a web browser. It runs in a sandboxed environment for security. Options B and C describe other types of software components, while D incorrectly restricts applets to only graphics.

Multiple choice technology
  1. A browser, written in Java by Sun

  2. A package supplied by Symantec Cafe which provides much prettier buttons, scroll bars and other widgets than the

  3. A Java compiler which uses "Just in time" technology to speed up system throughput.

  4. A Java Engine which can be called up using a single keystroke or "hot key".

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

HotJava was the first web browser written in Java, developed by Sun Microsystems in 1995. It demonstrated Java's capability for building complex applications. Options B, C, and D refer to other products or concepts - Symantec Cafe was an IDE, JIT compilation is a compiler optimization, not a browser.

Multiple choice technology platforms and products
  1. Document Libraries

  2. Webparts

  3. Farms

  4. Lists

  5. Workflows

  6. Business Data Applications

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

MOSS 2007 (Microsoft Office SharePoint Server) provides Document Libraries, Webparts, Lists, Workflows, and Business Data Applications as core application services. These are all valid components of SharePoint's service architecture. Farms (option C) refer to the deployment topology, not an application service - it's the infrastructure level, not a user-facing service.

Multiple choice technology mainframe
  1. A developer would use Java snippets for general tasks. A Java snippet's implementation is fixed and

  2. A developer would use Java snippets to create a snippet that captures a specific behavior. A Java

  3. A developer would use Java snippets to call an arbitrary Java method directly. A Java snippet can also

  4. A developer would use Java snippets to link and unlink tasks within a business process diagram. A Java

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

In WebSphere Process Server / Integration Developer, Java snippets allow integration developers to call arbitrary Java code or methods directly within a business process flow to implement logic not easily modeled using standard visual activities. The truncated options do not correctly define this behavior.

Multiple choice technology mainframe
  1. JMS

  2. MQ JMS

  3. Generic JMS

  4. .Web service - SOAP over JMS

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

For interacting with third-party or non-IBM messaging middleware that supports JMS, the 'Generic JMS' binding should be used. MQ JMS is specific to IBM MQ. Regular JMS and Web Service-SOAP over JMS bindings are also for specific purposes. Generic JMS provides flexibility for various JMS providers.

Multiple choice technology web technology
  1. servlet.jar

  2. jsp-api.jar

  3. servletapi.jar

  4. servlet-api.jar

  5. servlet1.1.jar

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

The standard Java Servlet API is packaged in servlet-api.jar (in modern versions, javax.servlet-api.jar). This JAR contains the interfaces and classes for implementing servlets. servlet.jar, servletapi.jar, and servlet1.1.jar are not the standard naming conventions for the official Servlet API library.

Multiple choice technology web technology
  1. init(),getServletInfo(),destroy(),service(),getServletConfig()

  2. init(),getServletConfig(),service(),getServletInfo(),destroy()

  3. init(),destroy(),getServletInfo(),getServletConfig(),destroy()

  4. destroy(),service(),init(),getServletConfig(),getServletInfo()

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

The servlet lifecycle methods in order are: init() (called once when servlet is first loaded), service() (called for each request), and destroy() (called once before servlet is unloaded). getServletConfig() retrieves configuration and is available after init(), while getServletInfo() returns servlet information. Option B correctly sequences the core lifecycle: init, then service, then destroy.

Multiple choice technology packaged enterprise solutions
  1. With ESQL

  2. With JAva

  3. With Mappings

  4. All of the above

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

IBM WebSphere Message Broker Toolkit supports multiple development approaches for message flows: ESQL (Extended SQL) for database-style logic, Java for programmatic transformations, and graphical Mappings for visual data transformation. All three are valid methods supported by the toolkit.

Multiple choice technology packaged enterprise solutions
  1. Message Routing

  2. Message Transformation and Enrichment

  3. Publish/Subscribe

  4. All of the above

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

WebSphere Message Broker's core capabilities include: Message Routing (directing messages based on content or rules), Message Transformation and Enrichment (converting formats and adding data), and Publish/Subscribe (pub/sub messaging patterns). All three are primary features of the broker.

Multiple choice technology
  1. Message Path on the Server

  2. Handlers and the Message Path in Axis

  3. Message Path on the Client

  4. All of the above

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

Apache Axis architecture consists of three main architectural components: the Message Path on the Server (how messages flow through server-side processing), Handlers and the Message Path in Axis (the processing chain), and the Message Path on the Client (how messages flow through client-side processing). All three are fundamental architectural elements.

Multiple choice technology platforms and products
  1. getAllDIServers

  2. getAllFolders

  3. getAllRepositories

  4. getAllTasks

  5. getAllWorkflowInstances

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

Metadata Web Service provides repository-wide operations. getAllDIServers lists available Integration Services. getAllFolders retrieves folder hierarchy. getAllRepositories returns repository information. Workflow instances and tasks are operations-specific, not metadata.

Multiple choice technology web technology
  1. Java Keyword

  2. Web Browser

  3. Java Framework

  4. Programming Language

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

Hibernate is an object-relational mapping (ORM) framework for the Java programming language. It provides a framework for mapping object-oriented domain models to relational databases, simplifying database operations in Java applications.

Multiple choice technology web technology
  1. Queue Manager

  2. Command server

  3. Listener

  4. Queue

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

The Queue Manager is the primary MQ component that provides the MQI (Message Queue Interface) to applications. It manages queues, channels, and message routing. Other options like listener, command server, or queues are objects managed BY the queue manager, not the API provider itself.

Multiple choice technology embedded technologies
  1. container

  2. objects

  3. classes & interfaces

  4. bean

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

EJB components run inside an EJB container, which provides services like transaction management, security, concurrency, and lifecycle management. Objects, classes, interfaces, and beans are not deployment environments.