top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Why java does not support pointer?

+1 vote
370 views
Why java does not support pointer?
posted Aug 10, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

Java doesn't allow programmers to directly access for safety reasons. Basically with pointers you could access memory directly and alter it's state. That is like tampering with the something that a programmer shouldn't do. For instance, some of the viruses were developed to use pointers to tamper with user's memory, refer (wiki link), under heading Function pointer.

Java is developed to be a better, secured programming language. That is why. And there are some other reasons as well, but this is the important one.

answer Aug 10, 2016 by Vinod Kumar K V
...