What is a Jar file

Jar file allows to efficiently deploying a set of classes and their associated resources. The elements in a jar file are compressed, which makes downloading a Jar file much faster than separately downloading several uncompressed files. The package java. util. zip contains classes that read and write jar files. In the context of Core Java, … Read more

What is a Java Bean?-

A Java Bean is a software component that has been designed to be reusable in a variety of different environments. A JavaBean is a reusable software component or module for Java that follows certain conventions for its design and functionality. These conventions are outlined by the JavaBeans API, which defines a set of rules and … Read more

Explain the methods, rebind() and lookup() in Naming class?-

rebind() of the Naming class(found in java. rmi) is used to update the RMI registry on the server machine. Naming. rebind(”AddSever”, AddServerImpl); lookup() of the Naming class accepts one argument, the rmi URL and returns a reference to an object of type AddServerImpl. I’m sorry, but there seems to be a misunderstanding. As of my … Read more

what is UnicastRemoteObject

All remote objects must extend UnicastRemoteObject, which provides functionality that is needed to make objects available from remote machines. In Java, UnicastRemoteObject is a class that provides support for creating and exporting remote objects with a specific protocol (typically, Java Remote Method Invocation or RMI). This class extends java.rmi.server.RemoteObject and implements the java.rmi.server.Unreferenced interface. The … Read more

What is RMI architecture

  RMI architecture consists of four layers and each layer performs specific functions: a) Application layer – contains the actual object definition. b) Proxy layer – consists of stub and skeleton. c) Remote Reference layer – gets the stream of bytes from the transport layer and sends it to the proxy layer. Transportation layer – … Read more