In Java, how the check number of bytes allocated to an array after it's declaration? For example:
int[] a = new int[10];
Array 'a' is allocated 4*10 bytes since the size of int is 4 bytes and there are 10 integer elements. Is there a non-manual way of doing this?