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
-
Allows you to include server executed code into any ASP application.
-
Allows you to use one file in several different web pages.
-
Allows you to use a piece of code more than once.
-
All of the above
D
Correct answer
Explanation
Server-Side Includes (SSI) enables all three capabilities: including server-executed code in ASP applications, reusing a single file across multiple web pages, and reusing code snippets multiple times. SSI promotes code modularity and maintainability by allowing developers to include common elements like headers, footers, or navigation bars across many pages from a single source file.
-
Response.Output.Write() allows you to flush output
-
Response.Output.Write() allows you to buffer output
-
Response.Output.Write() allows you to write formatted output
-
Response.Output.Write() allows you to stream output
C
Correct answer
Explanation
Response.Output.Write() provides formatted output capabilities using String.Format-style syntax, while Response.Write() only writes raw strings. Response.Output.Write() allows you to write formatted output with parameters like Response.Output.Write("Hello {0}", name), making it more flexible for dynamic content generation. The other options (flush, buffer, stream) are not the key differences.
-
Implement application and session level events
-
Declare Global variables
-
No use
A
Correct answer
Explanation
Global.asax is the ASP.NET application file that handles application-level and session-level events. It contains event handlers like Application_Start, Application_End, Session_Start, and Session_End, allowing developers to respond to key application lifecycle events.
-
Session Objects
-
Application Objects
-
Viewstate
-
All of the above
D
Correct answer
Explanation
ASP.NET supports multiple state management techniques across different scopes. Session objects store user-specific data, Application objects store application-wide data shared across all users, and ViewState maintains page-level state across postbacks.
-
InProcess
-
StateServer
-
Session Object
-
al of the above
A
Correct answer
Explanation
By default, ASP.NET stores session data in the InProcess mode, which keeps session data in the memory of the ASP.NET worker process. StateServer and SQL Server are alternative storage modes that need to be explicitly configured in web.config for web farm scenarios or when persistence across process restarts is needed.
-
The largest software developer owned by native Americans.
-
A leading developer of Java applications.
-
A website that holds auctions for concert tickets.
-
The most popular web server application.
D
Correct answer
Explanation
Apache HTTP Server has been the world's most widely used web server software since 1996. It is open-source software that serves web content over HTTP and powers a majority of websites globally.
-
incorrect file permission settings
-
applets must register all its parameters with the JVM before it can function
-
applets are protected
-
applets are not registered
-
CGI
-
Server Script
-
Server side processor
-
Servlet
-
Java Server Script
D
Correct answer
Explanation
A servlet is a Java program that runs on a server-side web server, analogous to how applets run on the client side in browsers. Servlets handle client requests and generate responses. The other options don't describe server-side Java applets - CGI is a general interface, 'Server Script' and 'Java Server Script' are not standard terms for this concept.
B
Correct answer
Explanation
WSDL (Web Services Description Language) is an XML-based interface definition language that describes the functionality offered by a web service, including the operations available, message formats, and protocol details. UDDI is a registry service, SOAP is a message protocol, and 'Path' is not a relevant XML service technology.
-
Performance Counters
-
Data Performance Counters
-
Web Performance Counters
-
Data Readers
A
Correct answer
Explanation
Performance Counters are the standard mechanism in Windows and .NET to monitor various aspects of system and application performance, including web application metrics like requests per second.
-
Include the authentication element.
-
Include the authorization element.
-
Include the identity element.
-
Include the deny element.
A
Correct answer
Explanation
Authentication in an ASP.NET application via web.config is configured using the authentication configuration element within the system.web section. Authorization is handled separately using the authorization element.
-
SSL
-
clustering,SSL
-
SSL,TCP
-
Clustering,SSL,TCP,persistence
D
Correct answer
Explanation
ActiveMQ provides enterprise messaging features including clustering for scalability, SSL for secure communication, TCP as a transport protocol, and persistence for message durability, making it suitable for production enterprise deployments.
-
Enterprise Application Integration
-
Middle ware
-
Enterprise Service Bus
-
Service Oriented architecture
C
Correct answer
Explanation
Apache ActiveMQ serves as the messaging backbone in Enterprise Service Bus (ESB) implementations like Apache ServiceMix and Apache Camel, enabling integration between different applications and services in a service-oriented architecture.
-
Java Messaging Service
-
Message queue
-
service-oriented archiotecture
-
Advanced message queuing protocol
A
Correct answer
Explanation
Apache ActiveMQ is a JMS-compliant message broker that fully implements the Java Messaging Service (JMS) 1.1 specification, providing standard APIs for messaging in Java applications.
-
Applet
-
Java
-
Cookie
-
Session
C
Correct answer
Explanation
A cookie is a small piece of data stored on the user's computer by the web browser while browsing a website. Sessions are stored server-side, and Applets are small applications, not simple variables.