Top 80+ Solved J2EE Technologies MCQ Questions Answer
Q. Which tag is used to set a value of a JavaBean?
a. <c:set>
b. <c:param>
c. <c:choose>
d. <c:forward>
Q. Java code is embedded under which tag in JSP?
a. Declaration
b. Scriptlet
c. Expression
d. Comment
Q. Which of the following is not a directive in JSP?
a. page directive
b. include directive
c. taglib directive
d. command directive
Q. 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. Tr
Q. 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
Q. Java supports RMI, RMI Stands for?
a. Random Method Invocation
b. Remote Memory Interface
c. Remote Method Invocation
d. Random Method Invocation
Q. An RMI Server is responsible for _______
a. Creating an instance of the remote object
b. Exporting the remote object
c. Binding the instance of the remote object to the RMI registry
d. All mentioned above
Q. Abbreviate the term DGC?
a. Digital Garbage Collection
b. Distributed Garbage Collection
c. Distributed Garbage Connection
d. None of the above
Q. RMI and EJB, provides services to access an object running in another JVM (known as remote object).
a. True
b. False
c. none
d. all
Q. In RMI, the objects are passed by _____.
a. Value
b. Reference
c. Value and Reference
d. None of the above
Q. RMI uses a layered architecture; each of the layers could be enhanced or replaced without affecting the rest of the system.
a. True
b. False
c. none
d. all
Q. What are the exceptions which have to be handled in a RMI client program?
a. RemoteException
b. NotBoundException
c. MalFormedURLException
d. All mentioned above
Q. RMI is a server-side component; It is not required to be deployed on the server.
a. True
b. False
c. none
d. all
Q. Which package is used for Remote Method Invocation (RMI)?
a. javlang.rmi
b. java.lang.reflect
c. java.applet
d. java.rmi