C++ has pointers but java doesn't support it,becoz java focuses on security.

Using pointers we can write virus programs,inorder to avoid it,they removed the ptr concept from java.

Hope tis...