Java30 07/10/2008
 

What is the Collections API?

The Collections API is a set of classes and interfaces that support operations on collections of objects.

What is synchronization and why is it important?

With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of using or updating that object’s value. This often leads to significant errors.

How are Observer and Observable used?

Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.

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.
d) Transportation layer - responsible for handling the actual machine-to-machine communication.

What steps are involved in developing an RMI object?

The steps involved in developing an RMI object are:
a) Define the interfaces
b) Implementing these interfaces
c) Compile the interfaces and their implementations with the java compiler
d) Compile the server implementation with RMI compiler
e) Run the RMI registry
f) Run the application

 


Comments




Leave a Reply

    Java Sets


    Archives

    July 2008

    RSS Feed