Just like pointers are there in C, is there any substitute for them in Java?
Joined: Oct 18, 2000
Yes Parul,the pointers are called REFERENCES in Java. ------------------ Come on in !! Drinks are on the house in the Big Moose Saloon !!
Udayan Naik<BR>Sun Certified Programmer for the Java 2 Platform
Joined: Nov 14, 2000
Yes it is true that refernces are a type of pointers but you can not manipulate them just lie C pointers. so be careful about that. Here is a quote from JLS sec:4.3.1 "The reference values (often just references) are pointers to these objects, and a special null reference, which refers to no object."