J2EE Technologies MCQs and Notes

M

Mr. Dubey • 52.30K Points
Coach

Q 1. In RMI which layer defines and supports the invocation semantics of the RMI connection and 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 Tr

M

Mr. Dubey • 52.30K Points
Coach

Q 2. What is the built on top of the socket programming?

(A) EJB
(B) RMI
(C) Both A & B
(D) None of the above

M

Mr. Dubey • 52.30K Points
Coach

Q 3. 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

M

Mr. Dubey • 52.30K Points
Coach

Q 4. 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

M

Mr. Dubey • 52.30K Points
Coach

Q 5. 1099 is the default port used by RMI Registry.

(A) True
(B) False
(C) none
(D) all

M

Mr. Dubey • 52.30K Points
Coach

Q 6. Which method in naming class specifies a name to the remote object?

(A) bind(string name)
(B) rebind(string name)
(C) Both A & B
(D) None of the above

M

Mr. Dubey • 52.30K Points
Coach

Q 7. RMI Architecture consists of how many layers?

(A) 5
(B) 3
(C) 4
(D) 2

M

Mr. Dubey • 52.30K Points
Coach

Q 8. Which objects are used by RMI for communicating with the remote object?

(A) Stub
(B) Skeleton
(C) Both A & B
(D) None of the above

M

Mr. Dubey • 52.30K Points
Coach

Q 9. Which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them in an RMI application?

(A) Server
(B) Client
(C) Both A & B
(D) None of the above

M

Mr. Dubey • 52.30K Points
Coach

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

(A) java.lang.rmi
(B) java.lang.reflect
(C) java.applet
(D) java.rmi

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image