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
Why are component architectures useful?
What is a policy?
what is a portable component?
Can I map more than one table in a cmp?
What is permgen or permanent generation?
What are the diff types of exception?
What is the relationship between local interfaces and container-managed relationships?
Explain the steps in details to load the server object dynamically?
How would you create a button with rounded edges?
what is meant by JRMP?
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
how i secure my site with the https protocol.what are the steps?
Can I use javascript to submit a form?
Explain about local interfaces.
What must a class do to implement an interface?