In java pointer is not used but it is highly secure language. How?