In c++ identifier of an array is a pointer and in java identifier of an array is a reference variable(practically a pointer).
Let's say there are an array a and b. How come in java this operation is allowed:
a = b; //the reference that 'b' holds will be copied to 'a' so both a and b point to the same array
but in C++ the same action will be considered an invalid assignment.
If a and b are both pointers in c++, why address that b holds won't be copied to a?