Understanding Remote Method Invocation (RMI)

RMI stands for Remote Method Invocation. A program running on a computer some where on the Internet can invoke a method that is resident in a program running somewhere else on the internet. To make this happen several things need to be done and all of them are built into the java.rmi package.

Understanding Multithreading in Java

Java provides built in support for multithreaded programming. A Multithreaded program contains two or more parts that can run concurrently. Each part of such a program is called a Thread. Each thread defines a separate path of execution. Multithreading is a specialized form of Multitasking.

Learn how to handle Events using Java

In any interactive environment, the program should be able to respond to actions performed by the user. There actions can be Mouse click, Key Press or selection of a Menu Item. When the user initiates an action, the AWT generates an event and communicates it to event handlers. These event handlers can respond to the […]

Learn how to handle Exception using Java

An exception is an abnormal condition which occurs during the running of a program. For example division by zero, invalid array index are the instances of exceptions. It’s better to anticipate such errors in advance and take necessary precautions while writing source code itself.