A pointer is something that holds the address of a variable or another object. Java has a high and robust security feature, so it does not allow pointers. Pointers can lead to illegal access of data and modifications can be made using the addresses in the pointers. So, these are the reasons why the concept of pointers is not allowed in Java.