AJP Answers
AJP Answers
Java ArrayList class uses a dynamic array for storing the elements. It is
like an array, but there is no size limit. We can add or remove elements
anytime. So, it is much more flexible than the traditional array. It is found
in the java.util package. It is like the Vector in C++.
There are the following classes that represent the border layout and Grid
layout managers:
java.awt.BorderLayout
java.awt.GridLayout
Java BorderLayout
BorderLayout(int hgap, int vgap): creates a border layout with the given
horizontal and vertical gaps between the components.
JAVA GRIDLAYOUT
• The client program requests the remote objects on the server and
tries to invoke its methods.
RMI Architecture
Let us now discuss the components of this architecture.
• Transport Layer − This layer connects the client and the server. It
manages the existing connection and also sets up new
connections.
• Skeleton − This is the object which resides on the server side. stub
communicates with this skeleton to pass request to the remote
object.
• RRL(Remote Reference Layer) − It is the layer which manages the
references made by the client to the remote object.
When the client makes a call to the remote object, it is received by the
stub which eventually passes this request to the RRL.
The RRL on the server side passes the request to the Skeleton (proxy
on the server) which finally invokes the required object on the server.
At the server side, the packed parameters are unbundled and then the
required method is invoked. This process is known as unmarshalling.
RMI Registry
RMI registry is a namespace on which all server objects are placed.
Each time the server creates an object, it registers this object with the
RMIregistry (using bind() or reBind() methods). These are registered
using a unique name known as bind name.