What is UniCastRemoteObject and what is its use in RMI?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When a thread blocks on i/o, what state does it enter?

550


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

558


What value does read() return when it has reached the end of a file?

524


What modifiers may be used with an inner class that is a member of an outer class?

556


What is RMI and what are the services in RMI?

589






What is message driven beam?

559


What do you mean by Socket Programming?

526


What are callback interfaces?

565


Describe, in general, how java's garbage collector works?

510


Which javutil classes and interfaces support event handling?

555


Do you think that java should have had pointers?

576


What is the highest-level event class of the event-delegation model?

548


What is a tasks priority and how is it used in scheduling?

524


Explain what is orm?

651


What is Remote Server?

1663