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
A
Correct answer
Explanation
JSF includes standard message bundles with predefined error messages for conversion and validation failures. These messages are automatically associated with components and displayed using or tags when errors occur during the Process Validations or Update Model Values phases.
-
The HTML is pulled from the Web cache on the Mobile Web Client
-
It is not possible for a disconnected client to receive Siebel HTML pages
-
The local Web Server with SWSE delivers the HTML to the browser
-
The Mobile Web Client must synchronize to receive the HTML from the Siebel Web Engine
C
Correct answer
Explanation
In disconnected mode, the Mobile Web Client uses a local web server with SWSE (Siebel Web Server Extension) to deliver HTML to the browser. HTML pages are generated locally from templates and data stored on the device, not from a web cache or requiring immediate synchronization.
-
Gathers templates and data and builds an HTML page
-
Displays the HTML page on the client’s computer
-
Provides access to, and distributes load for Siebel Servers
-
Verifies that the client is using an acceptable browser
A
Correct answer
Explanation
The Siebel Web Engine processes incoming requests by retrieving appropriate templates, fetching required data from the Siebel database, and constructing HTML pages. Display happens on the client, load balancing is handled by the SWSE/gateway, and browser verification is a separate function.
-
The browser retrieves the appropriate templates and the Siebel Web Engine retrieves the data from the database to build the HTML page
-
The Siebel Web Engine recognizes the URL and passes it to the Web Server where the HTML page is built for the user
-
The Web Server retrieves the appropriate templates and the Siebel Web Engine retrieves the data from the database to build the HTML page
-
The Web Server recognizes the URL and passes it to the Siebel Web Engine where the HTML page is built for the user
D
Correct answer
Explanation
When a user enters a Siebel application URL, the Web Server first receives the HTTP request. The Web Server recognizes Siebel URLs and passes them to the Siebel Web Engine (SWE), which then retrieves data from the database and constructs the HTML page using appropriate templates. This separation allows the Web Server to handle static content while the SWE processes dynamic Siebel-specific requests.
-
SWSE
-
SWE
-
Eapps.cfg
-
Name Server
-
Virtual Directory
A,C,E
Correct answer
Explanation
The Siebel Web Server extends a third-party web server with three key components: SWSE (Siebel Web Server Extension) which acts as the plug-in interface, eapps.cfg which contains application configuration settings, and a Virtual Directory that maps web requests to Siebel resources. SWE (Siebel Web Engine) is a separate component that runs on application servers, not the web server tier. The Name Server is a completely separate service for enterprise connectivity.
-
The Session object.
-
The Application object.
-
The Response object.
-
The Request object.
D
Correct answer
Explanation
The Request object encapsulates all data sent from the client to the server, including form data, query strings, cookies, and server variables. When a user submits a form, the form data is accessible through the Request object (Request.Form, Request.QueryString). Session (option A) stores user-specific data across pages, Application (option B) stores application-wide data, and Response (option C) sends data to the client.
-
The Session object.
-
The Application object.
-
The Response object.
-
The Server object
D
Correct answer
Explanation
The Server object provides access to server-related information and utilities. To get the web server's hostname, you would use Server.MachineName or access server variables through ServerVariables. The Session object (option A) stores user-specific data, Application (option B) stores application-wide state, and Response (option C) sends output to the client.
-
The Session object.
-
The Application object.
-
The Response object.
-
The Request object.
A
Correct answer
Explanation
The Session object encapsulates user-specific state and browser information, maintaining data across multiple page requests for a single user. It tracks session ID, stores user data, and can maintain information about the client's browser session. The Application object (option B) is shared across all users, Response (option C) sends data to the client, and Request (option D) handles incoming client data.
-
To store the global information and variable definitions for the application.
-
Configures the time that the server-side codebehind module is called.
-
To configure the web server.
-
To configure the web browser.
A
Correct answer
Explanation
Web.config is the primary configuration file for ASP.NET applications, storing global application settings, connection strings, and variable definitions accessible throughout the application. It does not directly configure the web server (IIS) or web browser. Option B is incorrect because Web.config doesn't control timing of code-behind execution.
-
The control will operate as usual; the default is runat="server"
-
The control will revert to being a client-side control and function as such.
-
The control will not function; the default is runat="client".
-
The compilation of the application will fail.
D
Correct answer
Explanation
ASP.NET server controls require the runat="server" attribute to be processed on the server. Without this attribute, the control is treated as a literal HTML element during page compilation, causing compilation to fail because server-side control properties and event handlers cannot be resolved. Option A is incorrect - there is no automatic default. Option B is wrong because the code won't compile to begin with.
-
PHP
-
JSP
-
JavaScript
-
ASP
-
CSS
-
HTML
A,B,D
Correct answer
Explanation
PHP, JSP, and ASP are all server-side scripting languages used to generate dynamic web content. JavaScript (C) is primarily a client-side language (though Node.js exists, the question context implies traditional web development). CSS (E) and HTML (F) are client-side presentation technologies, not server-side languages.
-
C Virtual Machine (CVM )
-
Kernel-based Virtual Machine (KVM)
-
Java Virtual Machine (JVM )
-
Java Runtime Environment (JRE)
-
None of the above
B
Correct answer
Explanation
KVM (Kernel-based Virtual Machine) is the Java virtual machine specifically designed for resource-constrained devices in J2ME. It is a stripped-down version of JVM optimized for devices with limited memory and processing power.
-
C Virtual Machine (CVM )
-
Kernel-based Virtual Machine (KVM)
-
Java Virtual Machine (JVM )
-
Java Runtime Environment (JRE)
-
None of the above
B
Correct answer
Explanation
KVM (Kernel-based Virtual Machine) is the lightweight Java virtual machine designed specifically for J2ME/CLDC devices with limited memory and processing power. It's a subset of the full JVM optimized for constrained environments.
-
In OpenDeploy base odnodes.xml should have an nodeSet entry having receivers host name and listening port
-
In OpenDeploy receiver odnodes.xml should have an nodeSet entry having base host name and listening port
-
Ports mentioned in both receiver and base should be the same
-
nodeSet entry is only required in odnodes.xml of base server not required in receiver server
A,B,C
Correct answer
Explanation
To deploy from OpenDeploy Base to Receiver: the Base's odnodes.xml needs a nodeSet entry with the receiver's hostname and port (A), the Receiver's odnodes.xml needs a nodeSet with the base's hostname and port (B), and both ports must match (C). Option D is incorrect because both sides need the nodeSet entry for proper communication.
-
ready-made environment in which users can perform functions on webMethods applications
-
manage access to webMethods applications functions
-
Capability to develop user interface pages
-
Broad-based set of administrative tools
-
None of Above
A,B,C,D
Correct answer
Explanation
My webMethods Server provides: a ready-made user environment for applications, access management through security controls, UI development capabilities through its interface framework, and comprehensive administrative tools for server management.