So these two arrays are the same?
Yes.
Class variable (MyClass of function arrayb in your example) contains pointer to the class object, while an integer variable contains integer.
MyArrayA and MyArrayB are array of class variables, which is pointer variable. So the content in the arrays are the same in both (pointers).