On This Page

This set of J2EE Technologies Multiple Choice Questions & Answers (MCQs) focuses on J2Ee Technologies Set 4

Q1 | What temporarily redirects response to the browser?
  • <%@directive%>
  • response.sendRedirect(URL)
  • response.setRedirect(URL)
Q2 | Which tag is used to set a value of a JavaBean?
Q3 | Can and <%–comment–%> be used alternatively in JSP?
  • TRUE
  • FALSE
  • none
  • all
Q4 | Java code is embedded under which tag in JSP?
  • Declaration
  • Scriptlet
  • Expression
  • Comment
Q5 | Which of the following is not a directive in JSP?
  • page directive
  • include directive
  • taglib directive
  • command directive
Q6 | In RMI Architecture which layer Intercepts method calls made by the client/redirects these calls to a remote RMI service?
  • Stub & Skeleton Layer
  • Application Layer
  • Remote Reference Layer
  • Tr
Q7 | 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?
  • Stub
  • Skeleton
  • Both A & B
  • None of the above
Q8 | Java supports RMI, RMI Stands for?
  • Random Method Invocation
  • Remote Memory Interface
  • Remote Method Invocation
  • Random Method Invocation
Q9 | An RMI Server is responsible for _______
  • Creating an instance of the remote object
  • Exporting the remote object
  • Binding the instance of the remote object to the RMI registry
  • All mentioned above
Q10 | Abbreviate the term DGC?
  • Digital Garbage Collection
  • Distributed Garbage Collection
  • Distributed Garbage Connection
  • None of the above
Q11 | RMI and EJB, provides services to access an object running in another JVM (known as remote object).
  • TRUE
  • FALSE
  • none
  • all
Q12 | In RMI, the objects are passed by _____.
  • Value
  • Reference
  • Value and Reference
  • None of the above
Q13 | RMI uses a layered architecture; each of the layers could be enhanced or replaced without affecting the rest of the system.
  • TRUE
  • FALSE
  • none
  • all
Q14 | What are the exceptions which have to be handled in a RMI client program?
  • RemoteException
  • NotBoundException
  • MalFormedURLException
  • All mentioned above
Q15 | RMI is a server-side component; It is not required to be deployed on the server.
  • TRUE
  • FALSE
  • none
  • all
Q16 | Which package is used for Remote Method Invocation (RMI)?
  • java.lang.rmi
  • java.lang.reflect
  • java.applet
  • java.rmi
Q17 | Which program obtains a remote reference to one or more remote objects on a serverand then invokes methods on them in an RMI application?
  • Server
  • Client
  • Both A & B
  • None of the above
Q18 | Which objects are used by RMI for communicating with the remote object?
  • Stub
  • Skeleton
  • Both A & B
  • None of the above
Q19 | RMI Architecture consists of how many layers?
  • 5
  • 3
  • 4
  • 2
Q20 | Which method in naming class specifies a name to the remote object?
  • bind(string name)
  • rebind(string name)
  • Both A & B
  • None of the above
Q21 | 1099 is the default port used by RMI Registry.
  • TRUE
  • FALSE
  • none
  • all
Q22 | RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?
  • Java Remote Method Protocol (JRMP)
  • Internet Inter-ORB Protocol (IIOP)
  • Jinni Extensible Remote Invocation (JERI)
  • All mentioned above
Q23 | Which method of the Naming class (found in java.rmi) is used to update the RMIregistry on the server machine?
  • rebind ()
  • lookup()
  • Both A & B
  • None of the above
Q24 | What is the built on top of the socket programming?
  • EJB
  • RMI
  • Both A & B
  • None of the above
Q25 | In RMI which layer defines and supports the invocation semantics of the RMI connection and this layer maintains the session during the method call?
  • The Stub & Skeleton Layer
  • The Application Layer
  • The Remote Reference Layer
  • The Tr