java does't support pointers
because usage of pointer leads illegal access of data i.e pointers show the exact address of the data and using this address any modifications can be made to info stored leading to lack of security, but java is a secured language and prides itself of being robust thats the reason pointers concept was removed from java.
though there are refference variables in java which act in a similar ways like pointer that is holding the address of an object
for example consider
class A
{
}
class B
{
A a= new A();
}
here 'a' is a refference variable which stores the address of the object A and the address is not revealed to the user or any other because if u try to access the address of 'a' it returns a fully qualified address i.e. packagename.classname@some hexadecimal value by doing so the security is preserved and illegal access is avoided