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


Please Help Members By Posting Answers For Below Questions

What happens when a thread cannot acquire a lock on an object?

531


Can we sent objects using Sockets?

638


Can constructors be synchronized in java?

612


Can I use javascript to submit a form?

603


Can I run seam with jdk 1.4 and earlier?

549






Define aop(assepct oriented programing)?

626


What is the difference between static and non-static with examples?

1352


If your ui seems to freeze periodically, what might be a likely reason?

538


What is an abstract method?

586


Is the session factory thread safe?

664


Explain ioc concept?

617


why static class in java

1269


What are the difference between RMI and CORBA?

616


What is the highest-level event class of the event-delegation model?

564


Write a singleton program?

562