Allocating an array vs. using array method


#1

I’m catching on, but I was wondering if there was a reason why you would use alloc to create an array at times, and other times you use the method array to create an array?

NSMutableArray *employees = [[NSMutableArray alloc]init];

                         vs.

NSMutableArray *employees = [NSMutableArray array];

It seems to me the only difference would be we would need to release *employees because it is allocated in the first instance, vs creating it using array. Other than that, is there a reason to use one over the other?