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
What is table mutation and how do you avoid it?
What are the steps to write p-to-p model application?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What value does readline() return when it has reached the end of a file?
What is local interface. How values will be passed?
If your ui seems to freeze periodically, what might be a likely reason?
Which class is the immediate superclass of the menucomponent class?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
what is an isolation level?
Which are the different segments of memory?
What is the highest-level event class of the event-delegation model?
What is a clone?
Explain what is orm?
Explain the steps in details to load the server object dynamically?
To what value is a variable of the string type automatically initialized?