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
  1. ViewState

  2. MasterPage

  3. Global Assembly Cache

  4. Code Access Security

  5. Reflection

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

ViewState is a .NET mechanism to store the posted data among postbacks. ViewState allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server whenever required.

Multiple choice
  1. Window form

  2. Web form

  3. Web service

  4. The execution support

  5. Bandwidth throttling

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

This technique acts as an abstraction layer, separating the platform and programming language specific details of how the application code is actually invoked.

Multiple choice
  1. Less server interaction

  2. We can handle events in JavaScripts

  3. JavaScript supports multithreading.

  4. It makes a web page dynamic

  5. Supports drag and drop.

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

Multithreading is the process of running multiple threads simultaneously. JavaScript doesn't have any multithreading or multiprocess capabilities.

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.