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 threadfactory?
Do I need to import javlang package any time? Why ?
what are RemoteObjects?
What is permgen or permanent generation?
What are callback interfaces?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What is chat area? Explain.
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
What is the infobus?
Why a client should be multithreading? Explain.
What is the difference between the font and fontmetrics classes?
Explain phantom read?
What are the different algorithms used for clustering?
What are the benefits of detached objects?
When a thread blocks on i/o, what state does it enter?