Using the static keyword in Java to increment an object index number

Using the static keyword in Java to increment an object index number In this article I will show how to use Java's static keyword to increment a unique index number for object instances. We will start by creating a simple class called Employee comprising fields only for name and address. These fields will be normal instance variables: public class ...