12 Jan 2017

Why Pointers are eliminated in Java..?

There are main common Problems reasons why pointer is not used in java:

  1. Pointers are lead to confusion for a programmer.
  2. 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. 
  3. Pointers break security. Using pointers , harmful programs like Viruses , Trojans and other hacking programs are developed.
Because of the above reason , Pointer have been avoided in Java

No comments:

Post a Comment