That doesn't allocate any memory for ObjectL objects - it allocates memory for an array of int a
references (pointers) to possible ObjectL objects.
To allocate memory for the objects themselves you need to execute new ObjectL(...);
where ... is zero or more parameters as required by ObjectL's constructor(s).
Because you defined and initialised the array numberL on line 3, it can never be null on line 5, so the test is redundant.
Note also that the array numberL was defined inside the formStyleOfLyle method, so it will go out of scope and be garbage collected as soon as you exit that method.
In summary, that whole method is equivalent to
public static int formStyleOfLyle(int a) {
return 0;
}
What exactly do you want to achieve here?