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 programming languages
  1. Value Objects

  2. MVC

  3. Data Access Object

  4. Business Delegate

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

The Business Delegate pattern reduces coupling between presentation-tier clients and business services by acting as an intermediary. It hides the complexity of business service lookup and exception handling. MVC is for separation of concerns, Value Objects for data transfer, and DAO for data access.

Multiple choice technology programming languages
  1. GET is the method commonly used to request a resource from the server

  2. POST is the method commonly used to request a resource from the server.

  3. GET is the method commonly used for passing user input to the server

  4. POST is the method commonly used for passing user input to the server

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

GET is commonly used to request resources from the server, with parameters often passed in the query string. POST is typically used for submitting user input or data to be processed by the server. While POST can also retrieve resources, GET is primarily associated with resource requests.

Multiple choice technology web technology
  1. Ideal for storing information

  2. Not visible to end-users

  3. Not interpreted by the browser

  4. All of the above

  5. None of the above

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

HiddenField controls are ideal for storing state information, are not visible to end-users on the rendered page, and are not interpreted or processed by the browser. All three characteristics make them useful for maintaining state across postbacks without exposing data.

Multiple choice technology programming languages
  1. The session expires

  2. Clears the buffer area

  3. Avoid page to be cached

  4. None of the Above

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

These Response properties disable browser caching. Buffer=True buffers output before sending, ExpiresAbsolute sets expiration to a past date, Expires=0 expires immediately, and CacheControl='no-cache' tells the browser not to cache. Together they ensure the page is always fetched fresh from the server.

Multiple choice technology programming languages
  1. The session expires

  2. Clears the buffer area

  3. Avoid page to be cached

  4. None of the Above

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

These Response properties disable browser caching. Buffer=True buffers output before sending, ExpiresAbsolute sets expiration to a past date, Expires=0 expires immediately, and CacheControl='no-cache' tells the browser not to cache. Together they ensure the page is always fetched fresh from the server.

Multiple choice technology packaged enterprise solutions
  1. Specify the rule_type parameter within the web.xml file

  2. Can be configured to use two different types of rules t o determine what queues or users to use when dispatching/assigning objects.

  3. They are used to start the communication without instantiating the interaction

  4. Uses the auto destination rules stored in the table_rule

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

Auto destination servlets in ClarifyCRM are used to automatically assign or dispatch objects using pre-configured routing rules, not for starting communications without instantiating interactions. The other options correctly describe their configuration via web.xml, rule types, and rule tables.

Multiple choice technology programming languages
  1. Home Interface

  2. Remote Interface

  3. Bean Class

  4. All

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

Stateful Session Beans in EJB (Enterprise Java Beans) architecture consist of three components: the Home Interface for creating and locating beans, the Remote Interface for defining business methods, and the Bean Class containing the implementation. All three components are essential for the complete EJB structure.

Multiple choice technology web technology
  1. 0

  2. 1

  3. 2

  4. 3

  5. 4

  6. Page does not translate.

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

This JSP declares an instance variable x initialized to 0. On first access: x starts at 0, x++ prints 0 then becomes 1, jspInit() prints x++ (1) then x becomes 2. System.out.println(x) outputs 2. End of first request: x=2. On second access: x starts at 2, x++ prints 2 then becomes 3. jspInit() prints x++ (3) then x becomes 4. System.out.println outputs 4. The expression <%= x++ %> outputs 3 (current value before increment). So second access shows 3 in the web page.

Multiple choice technology web technology
  1. Web.xml

  2. application.xml

  3. ps.xml

  4. Actionconfig.xml

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

In Java web applications, servlets and security role mappings are defined in the web.xml deployment descriptor. This is the standard configuration file for servlet containers like Tomcat. Application.xml is for EAR-level configuration, while ps.xml is framework-specific.

Multiple choice technology web technology
  1. Servlet of the appilcation

  2. Deployment descriptor of the appln

  3. Context root of the application

  4. ps.xml file of the application

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

When a URL is hit, the servlet container first reads the deployment descriptor (web.xml) to determine which servlet or filter should handle the request. The deployment descriptor maps URL patterns to servlet classes before any application code executes.

Multiple choice technology web technology
  1. ec_debug.jsp->Configuration->DomainData->LifeHost

  2. ec_debug.jsp->DomainData->Host.xml

  3. using wasops

  4. ec_debug->Jars->Registered Components->DomainData->Host

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

In the PS framework debug interface, the Life Host region configuration is accessed through the path ec_debug.jsp->Configuration->DomainData->LifeHost. This is a specific navigation path within the framework's administrative console.

Multiple choice technology web technology
  1. 0

  2. 1

  3. 2

  4. 3

  5. 4

  6. Page does not translate.

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

A JSP declaration variable x is static/instance-scoped and persists across requests. Initially, jspInit() is called once during translation/loading (printing/incrementing x to 1). On the first request, &lt;%= x++ %&gt; prints 1 (now x is 2), then prints 3 in the scriptlet. On the second request, &lt;%= x++ %&gt; evaluates to 3 and prints 3.