What is UniCastRemoteObject and what is its use in RMI?

Answers were Sorted based on User's Feedback



What is UniCastRemoteObject and what is its use in RMI?..

Answer / janet

All remote objects must extend UnicastRemoteObject, which
provides functionality that is needed to make objects
available for remote machines.

Is This Answer Correct ?    44 Yes 13 No

What is UniCastRemoteObject and what is its use in RMI?..

Answer / vatsal doshi

There are many purposes for using a Unicast Remote Object

1. All the basic functionalities of RMI are actualy
implemented in this class. When we extend this class, in our
Remote class, all the RMI code gets inherited and becomes
available in our class

2. UnicastRemoteObject also implements Serializable
interface. So your subclass also automatically implements
Serializable. And thus marshalling is then supported for
your type

3. UnicastRemoteObject also prevents the methods of Object
class from being directly inheritted into the Remote class.
Thereby, preventing the 11 methods of Object class from
being invoked Remotely. methods like hashcode() need
different implementations for Remote invocations.

Is This Answer Correct ?    23 Yes 5 No

What is UniCastRemoteObject and what is its use in RMI?..

Answer / yogesh

If you extends this class, your object will be automatically exported for RMI access.

If your class is already extending another class, or you just don't like extending from UnicastRemoteObject, you can also do the following:

UnicastRemoteObject.exportObject ( this );

Is This Answer Correct ?    2 Yes 0 No

What is UniCastRemoteObject and what is its use in RMI?..

Answer / tayyab ashraf

As unicast remote object contain all core functionality of RMI
so in order to get the features of RMI we should extend this class.

Is This Answer Correct ?    2 Yes 1 No

What is UniCastRemoteObject and what is its use in RMI?..

Answer / sarfaraz sheikh

The use of UnicastRemoteObject in RMI to create an instance
for remote services and provide activation and deactivation.

Is This Answer Correct ?    7 Yes 8 No

What is UniCastRemoteObject and what is its use in RMI?..

Answer / kamalakkanan

remote service

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Advanced Java Interview Questions

1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession

1 Answers  


difference between apllet and interface class

1 Answers   Infotech,


Difference between DurableSubscription and non- DurableSubscription?

0 Answers  


Difference between hashmap and hashtable?

0 Answers  


what is container?

3 Answers   Infosys, Infotech,






how java is os independent language ?

3 Answers  


explain the flow of struts?

2 Answers   SolutionNET,


What modifiers may be used with an interface declaration?

0 Answers  


difference of inheritance and interface

3 Answers  


Does Java pass arguments by value or reference?

5 Answers   HeadStrong,


Explain the difference between object state and behavior?

0 Answers  


What is the initial state, When a thread is created and started?

3 Answers  


Categories