Question

In this part, judge whether the following statements are correct or wrong and briefly justify your...

In this part, judge whether the following statements are correct or wrong and
briefly justify your judgment

Although RMI enables an object to invoke methods of another object on a remote
computer, the syntax between a local invocation and a remote invocation is different

0 0
Add a comment Improve this question Transcribed image text
Answer #1

RMI enables an object to invoke methhods of another object on a remote is Correct(or true).
But the syntax between a local invocation and a remote invocation is different statement is wrong(or false).

Explanation:

RMI which stands for Remote Method Invocation is an API which allows object to invoke another object's methods where it resides on different address space. Using RMI, object running in a JVM which is present on client side can be invoke methods that of object that is present on server side. This is possible as RMI creates a remote server object which is of type public which allows client and server communication by simple function calls on server object. This is handled by two intermediate objects called:
1. Stub object (Client)
2. Skeleton object (Server)


Stub object - it creates information block which contains identifier of remote object to be called, method name that is to be invoked and parameters to the remote JVM. This information will be sent to the server.

Skeleton object - it passes the request from stub to remote object by calling required method on the server and passes the parameters received from stub object to the method.


RMI uses the same syntax between a local and remote invocation because returned value is a reference to local stub object which implements the same remote interface and it find for generic Remote objects where returned value is cast to the interface type.

Add a comment
Know the answer?
Add Answer to:
In this part, judge whether the following statements are correct or wrong and briefly justify your...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT