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
When a thread blocks on i/o, what state does it enter?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What value does read() return when it has reached the end of a file?
What modifiers may be used with an inner class that is a member of an outer class?
What is RMI and what are the services in RMI?
What is message driven beam?
What do you mean by Socket Programming?
What are callback interfaces?
Describe, in general, how java's garbage collector works?
Which javutil classes and interfaces support event handling?
Do you think that java should have had pointers?
What is the highest-level event class of the event-delegation model?
What is a tasks priority and how is it used in scheduling?
Explain what is orm?
What is Remote Server?