Languages-Java [3i Infotech Placement]: Sample Questions 98 - 99 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 98

Appeared in Year: 2004

Question

MCQ▾

Stateless session bean is instantiated by

Choices

Choice (4)

a.

New Instance ()

b.

Create ()

c.

None of the above

d.

Question does not provide sufficient data or is vague

Answer

b.

Explanation

When an instance transits from non-exist state to method ready pool three operations are performed:

  • Bean instance is instantiated by invoking the class. new Instance () method on stateless session bean.
  • In stateless session beans calling create () method results in creating EJB object for the client.
  • Ejb Create () of a stateless bean is invoked once in the life cycle of a particular instance.

Question 99

Edit

Write in Short

Short Answer▾

What is the exact difference in between unicast and multicast object? Where will used?

Explanation

Table of Difference between Unicast and Multicast
UnicastMulticast
One machine is talking to only one other machinePacket is sent from one machine to one or more machines
Sender sends the data stream to a single receiver at a time.Sender and the interested receivers communicate.
One to one communication.One to many communication.
Information is sent from one point to another point.Information is sent from one or more points to a set of other points.

Developed by: