Java statement to access the 5th element of an array is:
X[4]
Reason — Array indexes start from 0. So, X[4] refers to the 5th element of the array.