There are main common Problems reasons why pointer is not used in java:
- Pointers are lead to confusion for a programmer.
- Pointers may crash a program easily, for example, when we add two pointers, the program crash immediately. The same thing could also happen when we forgot to free the memory allotted to a variable and re-allot it to some other variable.
- Pointers break security. Using pointers , harmful programs like Viruses , Trojans and other hacking programs are developed.
No comments:
Post a Comment