+ 14
Pointers in C++:- The variable that stores the address of another variable (like foo in the previous example) is what in C++ is called a pointer. Pointers are a very powerful feature of the language that has many uses in lower level programming. http://www.cplusplus.com/doc/tutorial/pointers/ https://www.sololearn.com/learn/CPlusPlus/1630/?ref=app https://www.sololearn.com/learn/CPlusPlus/1631/?ref=app https://www.sololearn.com/learn/CPlusPlus/1643/?ref=app In Java:-) Java doesn't support pointers.Because Java has a robust security model and disallows pointer arithmetic for this reason. It would be impossible for the JVM to ensure that code containing pointer arithmetic is safe without expensive runtime checks. ... References to objects - Java has this, it justdoesn't call them pointers.
18th Feb 2018, 1:20 PM
Abhivarshini Maddala
Abhivarshini Maddala - avatar