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
-
Offers a clean separation between behavior and presentation.
-
No Robust event handling mechanism.
-
Events easily tied to server-side code.
-
Eliminated the need for a DTO Class
-
Compilers for different programming languages and target machines
-
Decision support systems
-
Web applications
-
Middleware
C
Correct answer
Explanation
Struts is specifically designed for building web applications in Java. It provides the infrastructure for web-based applications including MVC architecture, form handling, validation, and request processing. Compilers (A), decision support systems (B), and general middleware (D) are completely different problem domains that Struts does not address.
-
server side technology
-
component oriented and event driven framework for GUI development
-
follows MVC design pattern
-
all of the above
D
Correct answer
Explanation
JSF is indeed a server-side technology that is component-oriented and event-driven for GUI development, and it follows the MVC design pattern. All these characteristics are fundamental to JSF architecture. The framework handles UI components on the server, manages events, and separates concerns through MVC.
-
Random Memory Interface
-
Remote Method Invocation
-
Random Method Invocation
-
Remote Memory Interface
B
Correct answer
Explanation
RMI stands for Remote Method Invocation, enabling Java objects to invoke methods on other objects running in different JVMs, often across network boundaries.
-
Viewlet
-
Servlet
-
Object
-
Applet
D
Correct answer
Explanation
An applet is a small Java program designed to run in a web browser, transmitted over the Internet and executed client-side with security sandboxing restrictions.
-
service() method
-
getServletInfo() method
-
doGet() or doPost() method
-
None
C
Correct answer
Explanation
DFHMDI macro in CICS defines individual maps within a mapset, specifying field names, attributes, and screen positioning for terminal display.
-
Servlets are server side components
-
Applets have GUI interface
-
Servlets have GUI interface
-
Applets are client side components
C
Correct answer
Explanation
IDOCs support asynchronous processing - they are created and queued when the source system sends data, and transmitted when the target system becomes available.
-
HTTP Request
-
Junit Request
-
WebService (SOAP) Request
-
Web Socket Sampler
D
Correct answer
Explanation
HTTP Request, JUnit Request, and WebService (SOAP) Request are all core JMeter samplers. Historically, WebSocket Sampler required a plugin and was not part of the core distribution, which is why it's marked as 'not valid' in this context. Note: Modern JMeter versions (4.x+) include WebSocket support, but this question reflects an earlier version.
-
Database via JDBC
-
JMS
-
Mail Server
-
Unix
A,B,C
Correct answer
Explanation
JMeter can performance test various server types: databases via JDBC (using JDBC Request sampler), JMS servers (using JMS Point-to-Point or Publish/Subscribe samplers), and Mail Servers (using Mail Reader and SMTP samplers). 'Unix' is not a server type - it's an operating system that hosts servers, but not something you performance test directly.
-
Pre-processors
-
Post-processors
-
Listeners
-
Assertions
B
Correct answer
Explanation
Post-processor elements run after a sampler executes and are specifically designed to process response data and extract values for use in subsequent requests. Examples include Regular Expression Extractor, JSON Extractor, and CSS Selector Extractor. Pre-processors run BEFORE requests, Listeners only view results, and Assertions validate responses.
-
Session
-
Application
-
Response.Cookies
-
Response.ViewState
B
Correct answer
Explanation
Application state stores data that is accessible to all users across the entire application - it's global to the application. Session state is user-specific and isolated per user session. Cookies are stored on the client-side browser. ViewState is page-specific for maintaining state across postbacks within a single page. For data that must be accessible to ANY user regardless of who they are, Application state is the correct choice.
-
Apache
-
Apache Tomcat
-
Microsoft IIS
-
Glassfish
A,C
Correct answer
Explanation
Apache and Microsoft IIS are web servers natively capable of hosting PHP applications via modules or FastCGI. Apache Tomcat and Glassfish are Java application servers/servlet containers designed for Java applications rather than standard PHP hosting.
-
Simple Object Access Protocol
-
Sample Object Access Protocol
-
Servlet Object Access Protocol
-
Simple Obtained Access Protocol
A
Correct answer
Explanation
SOAP stands for Simple Object Access Protocol - it's a protocol for exchanging structured information in web services using XML. The other options use incorrect words like 'Sample', 'Servlet', or 'Obtained' that don't match the actual acronym.
-
local servers
-
remote servers
-
many local servers
-
none
B
Correct answer
Explanation
SOAP (Simple Object Access Protocol) enables applications to invoke methods on objects located on remote servers over a network. It uses XML for message formatting and typically works over HTTP or SMTP. This allows distributed systems to communicate regardless of platform or programming language.
-
Web Servlet Description Language
-
Web Service Description Language
-
Web Services Description Language
-
Web Service Deployment Language