RMI - Advanced Java SET-1

Errorlogger
0
1) RMI allows an object to invoke methods on an object running in another JVM?
A) True
B) False


2) RMI uses which objects for the communication with the remote object?
A) Stub
B) Skeleton
C) Both A & B
D) None of the above


3) 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?
A) Stub
B) Skeleton
C) Both A & B
D) None of the above


4) When the skeleton receives the incoming request, it does the following tasks?
A) It reads the parameter for the remote method
B) It waits for the result
C) It writes and transmits (marshals) the result to the caller
D) It reads (unmarshals) the return value or exception
E) Both A & C


5) In RMI Architecture which layer Intercepts method calls made by the client/redirects these calls to a remote RMI service?
A) Stub & Skeleton Layer
B) Application Layer
C) Remote Reference Layer
D) Transport Layer


6) RMI has which of these protocols implementations?
A) Java Remote Method Protocol (JRMP)
B) Internet Inter-ORB Protocol (IIOP)
C) Jinni Extensible Remote Invocation (JERI)
D) All mentioned above


7) In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?
A) The Stub & Skeleton Layer
B) The Application Layer
C) The Remote Reference Layer
D) The Transport Layer


8) RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?
A) Java Remote Method Protocol (JRMP)
B) Internet Inter-ORB Protocol (IIOP)
C) Jinni Extensible Remote Invocation (JERI)
D) All mentioned above


9) Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?
A) rebind ()
B) lookup()
C) Both A & B
D) None of the above


10) 1099 is the default port used by RMI Registry?

A) True
B) False


11) In Naming class which method specifies name to a remote object?
A) bind(string name)
B) rebind(string name)
C) Both A & B
D) None of the above


12) Abbreviate the term DGC?
A) Digital Garbage Collection
B) Distributed Garbage Collection
C) Distributed Garbage Connection
D) None of the above


13) In RMI the objects are passed by Value or Reference?
A) Objects are passed by value
B) Objects are passed by Reference
B) Objects are passed by value and reference
D) None of the above


14) The UnicastRemoteObject class provides support for point-to-point active object references using TCP streams?
A) True
B) False
Tags

Post a Comment

0Comments

Post a Comment (0)

#buttons=(Accept !) #days=(30)

Our website uses cookies to enhance your experience. Check Now
Accept !