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 Activation Instantinator?
What is the form of storage space in java?
Write a program to show synchronization?
Do we need to override service() method
Write a singleton program?
If your ui seems to freeze periodically, what might be a likely reason?
Why does the option tag render selected=selected instead of just selected?
For which statements does it make sense to use a label?
what is a portable component?
When a thread blocks on i/o?
What is the RMI and Socket?
what is meant by JRMP?
What is synchronization and why is it important?
What are the different algorithms used for clustering?
How to determine SGA site?