This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've began a c++ course and i'm trying to get a deeper understanding of pointer.So could someone give me a correspondencee of c++ pointers to java variables(for arrays,objects etc if possible). Thank you.
You only notice the correspondence in C++, never in Java™. The pointer actually tells you which memory location you are at. You never notice the pointers in Java™ like that (in fact they can change during the execution of an applicaiton if the garbage collector runs).
I think this would sit better on another forum: moving.
Not everything is a reference - variables of primitive types (byte, short, int, long, boolean, char, float, double) are values, just like in C and C++. But all variables of non-primitive types are indeed references in Java.