MCQs > IT & Programming > Java MCQs > Remote Method Invocation MCQs

Remote Method Invocation MCQ

 Remote Method Invocation MCQ

1. In RMI program the following two steps are used to, Either extend the UnicastRemoteObject class, the exportObject() method of the UnicastRemoteObject class,

Answer

Correct Answer: Provide the implementation of the remote interface

Note: This Question is unanswered, help us to find answer for this one

2. RMI has which of these protocols implementations?

Answer

Correct Answer: Java Remote Method Protocol (JRMP)

Note: This Question is unanswered, help us to find answer for this one

3. When the skeleton receives the incoming request, it does the following tasks?

Answer

Correct Answer: It reads the parameter for the remote method And It writes and transmits (marshals) the result to the caller

Note: This Question is unanswered, help us to find answer for this one

4. Which is an object, acts as a gateway for the client side, all the outgoing requests are routed through it, and it resides at the client side and represents the remote object?

Answer

Correct Answer: Stub

Note: This Question is unanswered, help us to find answer for this one

5. In RMI Distributed object applications need to do?

Answer

Correct Answer: Locate remote objects

Note: This Question is unanswered, help us to find answer for this one

6. In Naming class which method specifies name to a remote object?

Answer

Correct Answer: Bind(string name)

Note: This Question is unanswered, help us to find answer for this one

7. In RMI the objects are passed by Value or Reference?

Answer

Correct Answer: Objects are passed by value

Note: This Question is unanswered, help us to find answer for this one

8. In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?

Answer

Correct Answer: The Remote Reference Layer

Note: This Question is unanswered, help us to find answer for this one

9. RMI and EJB, provides services to access an object running in another JVM (known as remote object)?

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

10. RMI uses a layered architecture; each of the layers could be enhanced or replaced without affecting the rest of the system?

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

11. Java supports RMI, RMI Stands for?

Answer

Correct Answer: Remote Method Invocation

Note: This Question is unanswered, help us to find answer for this one

12. In RMI Architecture which layer Intercepts method calls made by the client/redirects these calls to a remote RMI service?

Answer

Correct Answer: Stub & Skeleton Layer

Note: This Question is unanswered, help us to find answer for this one

13. Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?

Answer

Correct Answer: Rebind ()

Note: This Question is unanswered, help us to find answer for this one

14. An RMI Server is responsible for:

Answer

Correct Answer: Creating an instance of the remote object

Note: This Question is unanswered, help us to find answer for this one

15. Which is built on the top of socket programming?

Answer

Correct Answer: RMI

Note: This Question is unanswered, help us to find answer for this one

16. RMI Architecture consists of how many layers?

Answer

Correct Answer: 4

Note: This Question is unanswered, help us to find answer for this one

17. Which package is used for Remote Method Invocation (RMI)?

Answer

Correct Answer: Java.rmi

Note: This Question is unanswered, help us to find answer for this one

18. RMI uses which objects for the communication with the remote object?

Answer

Correct Answer: Stub And Skeleton

Note: This Question is unanswered, help us to find answer for this one

19. In a RMI Client Program, what are the exceptions which might have to handled?

Answer

Correct Answer: RemoteException

Note: This Question is unanswered, help us to find answer for this one

20. RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?

Answer

Correct Answer: Java Remote Method Protocol (JRMP)

Note: This Question is unanswered, help us to find answer for this one