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

Multiple choice
  1. It enables remote access to some server-side functionalities.

  2. It enables creation of the user interface and the application logic.

  3. It consists of static HTML or XML elements and ASP.Net server controls.

  4. It provides support for duplex communication.

  5. The communication is limited to HTTP only.

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

WCF provides accessibility to the all the applications and components in a large networking medium for the servers.

Multiple choice
  1. Virtually, all applications and services require components that implement business rules and perform business tasks.

  2. These provide services related to business components and other components.

  3. They provide the interoperability to the application components with the APIs.

  4. These can be used for robust applications.

  5. These agents can be managed with LAN application.

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

Service agents do not provide any business rules but provide the communication services for the client and servers.

Multiple choice
  1. This service uses the TCP protocol for its communication.

  2. This service will allow the client (written in different language) to access or modify the resource in the server using URL.

  3. This service involves building Resource-Oriented Architecture (ROA).

  4. Both 2 and 3

  5. Both 1 and 2

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

These correct statements for REST service.

Multiple choice
  1. It describes about the operation that service can provide.

  2. Service contracts are created using Service and Operational Contract attribute.

  3. It defines the data types that are passed to and from service.

  4. Default SOAP message format is provided by the WCF runtime for communication between Client and service.

  5. Both 1 and 2

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

These are the correct statements about 'Service contracts' in WCF architecture.

Multiple choice
  1. It specifies what occurs and when internal error occurs on the service.

  2. It tells how and whether metadata is available to outside world.

  3. It specifies how many instances of the service has to be created while running.

  4. All of the these

  5. Both 1 and 2

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

These are the correct statements about Service Runtime in WCF architecture.

Multiple choice
  1. WCF is a framework for building service-oriented applications.

  2. In WCF, one can send data as asynchronous messages from one service endpoint to another.

  3. WCF is designed to offer a manageable approach to creating Web services and Web service clients.

  4. WCF is used in business transactions.

  5. All of the these

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

All the statements are correct about WCF.

Multiple choice
  1. The Host environment can be a Console application or a Windows Service, or a Windows Forms application.

  2. It has service class that implements some service as a set of methods.

  3. It specifies an address that defines where the endpoint is hosted.

  4. It specifies the url of the service.

  5. All of the these

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

This is correct about 'Host Environment'.

Multiple choice
  1. Web service is a part of WCF.

  2. Web Service can be hosted in IIS, windows activation service, self-hosting, and Windows service.

  3. WCF offers much more flexibility and portability to develop a service as compared to web service.

  4. All of the these

  5. Both 1 and 3

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

These are the correct statements about Web Service.

Multiple choice
  1. It can be used to automatically generate and configure clients for accessing WCF services.

  2. It can be published over HTTP and HTTPS or using the Web Service Metadata Exchange standard.

  3. It is used to exchange the messages.

  4. All of the these

  5. Only 1 and 2 are correct.

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

Yes, it is the correct answer.

Multiple choice
  1. It describes how client will communicate with service.

  2. It provides encoding for the transmission of messages and attachments.

  3. It defines informations, such as security, transaction or reliable messaging capability.

  4. All of the these

  5. Both 1 and 3

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

All the statements are correct about Binding service in WCF.

Multiple choice
  1. It specifies an address that defines where the endpoint is hosted.

  2. It is Console application or a Windows Service, or a Windows Forms application.

  3. It has service class that implements some service as a set of methods.

  4. Endpoints determines the security of service.

  5. Both 1 and 4

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

Endpoints determines the address of the service such as url.

Multiple choice
  1. It represents an object locally which belongs to a different address space.

  2. This object represents a heavy or skeleton object as a virtual proxy object and on demand loads the real object.

  3. It provides protection to the web pages by blocking some content.

  4. It provides the client specific information to the server.

  5. Option (1), (3) and (4).

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

These are incorrect statements.