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
-
to keep strawberry jam fresh
-
to store all the currently in-use Java programs on a browser
-
as a container for a number of files for distribution over a network so that only the jar has to be transfered, and
-
as a central resource on a web server from which users can load just the Java programs they need without having to
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.
-
A piece of Java running within a web browser
-
A short application program which resides completely in a single file
-
An application which isn't invoked directly by the user, but is called up from within another application as, and
-
A piece of Java which is only allowed to produce graphic output and cannot write to the screen in any other way.
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.
-
A browser, written in Java by Sun
-
A package supplied by Symantec Cafe which provides much prettier buttons, scroll bars and other widgets than the
-
A Java compiler which uses "Just in time" technology to speed up system throughput.
-
A Java Engine which can be called up using a single keystroke or "hot key".
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.
-
Document Libraries
-
Webparts
-
Farms
-
Lists
-
Workflows
-
Business Data Applications
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.
-
A developer would use Java snippets for general tasks. A Java snippet's implementation is fixed and
-
A developer would use Java snippets to create a snippet that captures a specific behavior. A Java
-
A developer would use Java snippets to call an arbitrary Java method directly. A Java snippet can also
-
A developer would use Java snippets to link and unlink tasks within a business process diagram. A Java
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.
-
JMS
-
MQ JMS
-
Generic JMS
-
.Web service - SOAP over JMS
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.
-
servlet.jar
-
jsp-api.jar
-
servletapi.jar
-
servlet-api.jar
-
servlet1.1.jar
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.
-
init(),getServletInfo(),destroy(),service(),getServletConfig()
-
init(),getServletConfig(),service(),getServletInfo(),destroy()
-
init(),destroy(),getServletInfo(),getServletConfig(),destroy()
-
destroy(),service(),init(),getServletConfig(),getServletInfo()
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.
-
With ESQL
-
With JAva
-
With Mappings
-
All of the above
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.
-
Message Routing
-
Message Transformation and Enrichment
-
Publish/Subscribe
-
All of the above
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.
-
Message Path on the Server
-
Handlers and the Message Path in Axis
-
Message Path on the Client
-
All of the above
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.
-
getAllDIServers
-
getAllFolders
-
getAllRepositories
-
getAllTasks
-
getAllWorkflowInstances
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.
-
Java Keyword
-
Web Browser
-
Java Framework
-
Programming Language
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.
-
Queue Manager
-
Command server
-
Listener
-
Queue
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.
-
container
-
objects
-
classes & interfaces
-
bean
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.