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 web technology
  1. WSDL

  2. SOAP

  3. UDDI

  4. HTTP

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

WSDL (Web Services Description Language) is the standard XML document that describes a web service's interface, operations, and data types. It is distributed to clients so they can understand how to call the service. SOAP is the messaging protocol, UDDI is for service discovery, and HTTP is the transport layer.

Multiple choice technology web technology
  1. Aysnchronous Javascript and XML

  2. Application Javascript and XML

  3. Asynchronous JDK and XML

  4. Application JDK and XML

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

AJAX stands for Asynchronous JavaScript and XML. It's a technique for making web pages dynamic by exchanging data with a server asynchronously without reloading the entire page. The 'A' is for Asynchronous, not Application. JDK is incorrect as AJAX is JavaScript-based, not Java.

Multiple choice technology
  1. axacommercialintraweb.java

  2. axacommercialintraweb.txt

  3. axacommercialintraweb.properties

  4. axacommercialintraweb.config

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

This question assumes knowledge of a specific implementation. In Java-based ruleset controllers, the event flow controller is typically a Java class file, which would have the .java extension. This is a plausible naming convention.

Multiple choice technology programming languages
  1. getServletInfo()

  2. getInitParameters()

  3. getServletConfig()

  4. None

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

The GenericServlet class implements Servlet and provides getServletConfig() to retrieve the ServletConfig object passed to the init(ServletConfig) method. getServletInfo() returns descriptive text, and getInitParameters() does not exist directly with that name on GenericServlet.

Multiple choice technology programming languages
  1. session, request

  2. exception, request

  3. exception, config

  4. session, exception

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

In JSP, the session implicit object is unavailable if the page directive disables sessions (session="false"). The exception implicit object is only available on error pages (isErrorPage="true"). Thus, under standard configurations, both may be unavailable depending on the directives configured.

Multiple choice technology programming languages
  1. null

  2. Primary Key class

  3. Home Object

  4. Remote Object

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

In Entity JavaBeans (EJB), the ejbCreate() method for Container-Managed Persistence (CMP) beans returns null. For BMP (Bean-Managed Persistence) beans, it returns the primary key class. This is a key difference between CMP and BMP bean creation methods.

Multiple choice technology programming languages
  1. Structs Config

  2. WebXML

  3. ServletConfig

  4. None of the above

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

The ServletConfig interface is used by the servlet container to pass initialization parameters and configuration information to a servlet instance during its initialization (via the init method). WebXML is not a standard interface, and Structs Config is a framework-specific concept.

Multiple choice technology programming languages
  1. sessions

  2. HttpRequest

  3. HttpResponse

  4. Java Beans

  5. Cookies

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

Cookies are small text files stored on the client side that maintain state information across HTTP requests. Sessions are server-side mechanisms (cookies often store the session ID). HttpRequest/HttpResponse are request/response objects, not state storage. Java Beans are component models, not state mechanisms.

Multiple choice technology programming languages
  1. Structs Config

  2. WebXML

  3. ServletConfig

  4. None of the above

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

ServletConfig is an interface implemented by the servlet container to pass configuration information (init parameters, servlet context) to a servlet during initialization. It's accessed via getServletConfig(). Struts Config is framework-specific, WebXML is deployment descriptor format.

Multiple choice technology programming languages
  1. sessions

  2. HttpRequest

  3. HttpResponse

  4. Java Beans

  5. Cookies

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

Cookies are small text files stored on the client side that maintain state information across HTTP requests. Sessions are server-side mechanisms (cookies often store the session ID). HttpRequest/HttpResponse are request/response objects, not state storage. Java Beans are component models, not state mechanisms.

Multiple choice technology embedded technologies
  1. Android.location

  2. com.google.android.map

  3. com.tcs.mobility

  4. None of the above

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

android.location (standard platform API) and com.google.android.maps (add-on library) are official packages used for location and maps in older Android development. com.tcs.mobility is a proprietary or custom package name, and is not part of the standard APIs.

Multiple choice technology web technology
  1. mapping file

  2. mapping-file

  3. session-factory

  4. session

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

In hibernate.cfg.xml, the session-factory tag is the root element that contains all Hibernate configuration including database connection properties, mapping resources, and cache settings. The mapping resource is specified using nested tags inside session-factory, not as standalone tags like 'mapping file' or 'mapping-file'.

Multiple choice technology web technology
  1. Sets the application-level default channels to use for all services

  2. Contains a service adapter definition

  3. Fully qualified name of the Java class that provides the adapter functionality

  4. Indicates whether this adapter is the default adapter for service destinations.

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

In BlazeDS configuration, the `` element defines the application-level default channels to use for all services when a service destination does not explicitly specify one. The other options describe adapters and adapter configurations.