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

Multiple choice technology architecture
  1. Aspect Oriented Programming

  2. Inversion Of Control

  3. Object Oriented Programming

  4. Simple Pattern

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Inversion of Control (IoC) is the design pattern where the Bean Factory manages object creation and dependency injection, separating configuration metadata from actual business logic code. This promotes loose coupling and easier testing.

Multiple choice technology programming languages
  1. /WEB-INF

  2. /appserverInstallDirectory/webapps/webappName/WEB-INF/xml

  3. /appserverInstallDirectory/webapps/webappName/WEB-INF

  4. /appserverInstallDirectory/webapps/webappName/WEB-INF/classes

Reveal answer Fill a bubble to check yourself
A,C Correct answer
Explanation

In Java web applications, the deployment descriptor (web.xml) must be located in the WEB-INF directory. Valid locations include /WEB-INF directly, or the full path like /appserverInstallDirectory/webapps/webappName/WEB-INF. However, it cannot be in subdirectories like /WEB-INF/xml or /WEB-INF/classes - it must be directly in the WEB-INF folder itself.

Multiple choice technology programming languages
  1. The only way to access resources under the /WEB-INF directory is through appropriate servlet mapping directives in the deployment descriptor

  2. Server-side code has access to all resources in the web application

  3. Clients of web applications can't directly access resources in /WEB-INF/tld.

  4. A good place to keep a .tld (tag library file) is directly in the /WEB-INF directory.

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

In Java web applications: (A) is false because server-side code can also access /WEB-INF resources via ServletContext.getResourceAsStream(). (B) is true - server-side code has full access. (C) is true - clients cannot directly access /WEB-INF contents. (D) is true - /WEB-INF is the standard location for .tld files. The correct answers are B, C, D.

Multiple choice technology enterprise content management
  1. Java Visual Mode

  2. Java Virtual Machine

  3. Java Virtual Manual

  4. Java View Mode

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JVM stands for Java Virtual Machine, which is the execution engine that runs Java bytecode by providing a runtime environment. It's not a visual mode, manual, or view mode - it's the fundamental component that enables Java's platform independence by abstracting the underlying hardware.

Multiple choice technology enterprise content management
  1. cd /Utils/companyx/inbound/postToERP

  2. cd /invoke/companyx.inbound/postToERP

  3. cd /ns/companyx/inbound/postToERP

  4. cd /ns/companyx.inbound/postToERP

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In webMethods Integration Server, the namespace (ns) virtual directory is used to access services via FTP. The correct path syntax to navigate to a service in a package is cd /ns/ followed by the folder path and service name, which is /ns/companyx/inbound/postToERP.

Multiple choice technology enterprise content management
  1. Primitive Data Types

  2. Simple Data Types

  3. Complex Data Types

  4. IS schemas may not be edited

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In webMethods Developer, when creating Integration Server schemas from XML documents, you can edit Simple Data Types to apply constraints or facets. Complex types represent structural elements derived from the XML schema and cannot be directly modified in the same way.

Multiple choice technology performance
  1. Web Controller

  2. Performance Online

  3. Performance Center

  4. Load Runner Controller v.9.x

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Performance Center is the web-based version of LoadRunner Controller. It provides a browser-based interface for managing and monitoring load tests, whereas the traditional Controller requires a desktop client installation.

Multiple choice technology web technology
  1. Application Server

  2. Web Server

  3. Database Server

  4. Messaging Server

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Apache is a web server software that serves web content over HTTP/HTTPS. It's the most widely used web server software, not an application server, database server, or messaging server.

Multiple choice technology web technology
  1. Starts Apache in verbose mode with maximum logging.

  2. Has no impact on Apache and has been discontinued as of Apache 1.2.6.

  3. Displays the version of Apache and the build date and exits.

  4. Disables virtual hosting for the specified virtual host name.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In Apache HTTP Server, running the executable with the -v option prints the version of the Apache server and its build date, and then immediately exits without starting the daemon.

Multiple choice technology programming languages
  1. The Session is not valid in the new Window

  2. The Session is valid in the new Window

  3. The Scope is not valid in the new Window

  4. The Scope is valid in the new Window

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When a new window is opened from an existing page via a link or script, the browser sends the same session cookie (JSESSIONID) in the request headers. Thus, the session remains valid and shared in the new window.

Multiple choice technology programming languages
  1. getServletInfo()

  2. getInitParameters()

  3. getServletConfig()

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The getServletConfig() method is inherited from GenericServlet and returns the ServletConfig object passed to the init method, allowing access to initialization parameters and the servlet context.