Saturday, May 16, 2015

why pointers are eliminated from java?


1. Pointers lead to confusion for a programmer.
2. Pointers may crash a program easily , for example ,when we add two pointers ,the program crashes immediately . The same thing could also happen when we forgot to free the memory allotted to a variable and allotted to a variable and reallot it to some other variable.

3. Pointers break security .Using pointers ,harmful programs like Virus and other hacking programs can be developed.
Because of the reasons , pointers have been eliminated from java.

No comments:

Post a Comment