Q:

Does Java call a method when an object is created at runtime?

I want to set the value of the next array object whenever an object is created in my main function.
This is the object 
   public class MyObject{
        private int objCount = 0;
        private int i = 0;
        public class Property{..}
        public Property propertyArray[] = new Property[12];
  }

Main function creates an empty object and adds properties to the property array.
The object needs to keep different number of properties. 
   MyObject foo = new MyObject();
   foo.add("ID", 2);
   foo.add("MIE",132);

   MyObject bar = new MyObject();
   bar.add("REV", 22);

There is also an array of the object,
   public MyObject[] ObjectArray = new MyObject[5];

I want to call a method that increases the object array index when a new object is created

A:

Yes, Java makes a call when a new object is created, except it's not calling a method, it is calling a constructor. Constructors are declared like methods with no result type, and the name matching the name of the type, i.e. like this:
public class MyObject {
    private int objCount = 0;
    private int i = 0;
    public class Property{..}
    public Property propertyArray[] = new Property[12];
    // This is the constructor
    public MyObject() {
        ... // <<== Do stuff here
    }
}

If you would like to add items to an array inside the MyObject class constructor, the array needs to be static: although constructors can access instance variables, each constructor gets a brand-new set of instance variables with which to work.

