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

Remote Method Invocation MCQ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

RMI Architecture consists of how many layers?

Answer

Correct Answer: 4

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

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

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

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

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