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
-
Create a JVM for applets.
-
Extending a web server by providing dynamic web content.
-
Storing information in applets.
-
Loading buttons and menus.
B
Correct answer
Explanation
This is a duplicate of question 151540 with options in different order. Servlets extend web server functionality by generating dynamic content in response to HTTP requests. They are server-side Java components used for web applications, processing forms, and interacting with databases to produce customized responses for each client request.
-
The server has a built-in JVM.
-
The browser has a built-in JVM.
-
The source code is interpreted by the browser.
-
Applets don''t need a JVM.
B
Correct answer
Explanation
Java applets can run in browsers because browsers include (or used to include) a built-in JVM or Java plugin that can execute Java bytecode. The browser provides the runtime environment needed to execute the applet code securely. Option A is incorrect - the server doesn't run the applet, the client browser does. Option C is wrong - browsers don't interpret Java source code directly. Option D is false - applets require a JVM to execute.
-
Java Software Programming
-
JavaScript Server Program
-
Java Server Program
-
Java Server Programming
D
Correct answer
Explanation
JSP stands for Java Server Pages, which is a technology for creating dynamic web content using Java. It is not related to JavaScript Server Program or Java Server Program.
-
J2EE application Server and also an HTTP web server
-
Core application server
-
com++ server
-
Open tool
A
Correct answer
Explanation
BEA WebLogic (now Oracle WebLogic Server) is a J2EE application server that also functions as an HTTP web server. It provides a complete runtime environment for enterprise Java applications. The other options (com++ server, Open tool) are incorrect.
-
It consists only Admin
-
An inter-related set of WebLogic Server resources managed as a unit
-
It contains only Managed server.
-
None
B
Correct answer
Explanation
A WebLogic domain is an inter-related set of WebLogic Server resources (servers, clusters, applications) that are managed as a single administrative unit. It includes both Admin servers and Managed servers, ruling out A and C.
-
Management Beans (MBeans),
-
Java beans
-
C Beans
-
none
A
Correct answer
Explanation
The WebLogic Administration Server uses Management Beans (MBeans), which are JavaBean-like objects that expose management and monitoring capabilities. MBeans follow the JMX (Java Management Extensions) standard.
-
server.xml
-
serverAttributes.xml
-
config.xml
-
none
C
Correct answer
Explanation
When you delete a Managed Server through the Administration Server Console, WebLogic automatically removes the server's configuration from config.xml, which is the central domain configuration file. This file stores all server properties, attributes, and resources for the entire domain. The other files listed (server.xml, serverAttributes.xml) are not standard WebLogic configuration files.
B
Correct answer
Explanation
Oracle WebLogic Server is a Java EE application server, which requires a Java Development Kit (JDK) to run Java applications and provide the necessary runtime environment.
-
A WebLogic Server cluster consists of Single WebLogic Server server instances running
-
A WebLogic Server cluster consists of multiple WebLogic Server server instances running simultaneously
-
A WebLogic Server cluster consists of Two WebLogic Server server instances running
-
None
B
Correct answer
Explanation
A WebLogic Server cluster is a group of multiple WebLogic Server instances that run simultaneously and work together to provide scalability, reliability, and high availability. Clusters can contain any number of server instances (not just one or two), and they appear to clients as a single entity. Option B correctly describes the multi-instance nature.
-
Node Manager is a Java program that enables you to start and kill WebLogic Admin
-
Node Manager is a Java program that enables you to start and kill WebLogic Managed
-
Node Manager is a Oracle program that enables you to start and kill WebLogic Managed
-
None
B
Correct answer
Explanation
Node Manager is a Java utility provided by WebLogic that enables you to start, stop, and restart Managed Server instances remotely. It is specifically designed for managing Managed Servers, not the Administration Server (which is typically started directly). Option B correctly identifies its purpose and target.
-
weblogic.properties
-
weblogic.policy
-
weblogic.licenses
-
None
B
Correct answer
Explanation
The weblogic.policy file is where you update license information and security permissions for WebLogic Server. This Java policy file defines the security permissions and licensing constraints for the server. The weblogic.properties and weblogic.licenses files are not the correct locations for license configuration.
-
Javax.servlet.Filter
-
Javax.servlet.FilterChain
-
Javax.servlet.FilterConfig
-
None of the above
A
Correct answer
Explanation
The Intercepting Filter pattern in Java EE is implemented by creating a class that implements the javax.servlet.Filter interface. This interface defines methods like doFilter() that allow preprocessing and postprocessing of requests, enabling tasks like authentication, logging, and compression.
-
javax.servlet.ServletConfig
-
javax.servlet.Servlet
-
javax.servlet.ServletContext
-
All of the above
B
Correct answer
Explanation
The Front Controller pattern is implemented by creating a servlet that implements the javax.servlet.Servlet interface (typically by extending HttpServlet). This allows a single controller to handle all requests and delegate to appropriate handlers. ServletConfig and ServletContext are configuration objects, not handler interfaces.