sentence: dynamic vs. automatic languages such as java technically do not provide variable-length arrays , because all array objects in those languages are dynamically allocated on the heap , and therefore do not have automatic storage duration for arrays .