Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Is there a concept of “pointers” or “unsafe code” in Java? and How is a Java reference different from a C pointer?

user-image
Question added by ahmad yassine , Business Development & Performance , Boubyan Bank
Date Posted: 2013/12/03
Deleted user
by Deleted user

In C we can do illegal  operations because of pointers (by accessing the address of that variable),but in the case of java it won't possible because of JVM ,In java JVM will generate the hash code(address) of the reference(variable), JVM having seperate HashMap to generate the Hash Code(Address).....................  :)

Khaja Nayeemuddin Mohammed
by Khaja Nayeemuddin Mohammed , Senior Consultant , Infosys

Java dosent support the concept of pointers.

Deleted user
by Deleted user

since Java is a virtual machine, pointer is a useless idea.

More Questions Like This