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 happens when a thread cannot acquire a lock on an object?
Can we sent objects using Sockets?
Can constructors be synchronized in java?
Can I use javascript to submit a form?
Can I run seam with jdk 1.4 and earlier?
Define aop(assepct oriented programing)?
What is the difference between static and non-static with examples?
If your ui seems to freeze periodically, what might be a likely reason?
What is an abstract method?
Is the session factory thread safe?
Explain ioc concept?
why static class in java
What are the difference between RMI and CORBA?
What is the highest-level event class of the event-delegation model?
Write a singleton program?