The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Are there pointers in Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Are there pointers in Java?" Watch "Are there pointers in Java?" New topic

Are there pointers in Java?

parul choudhary

Joined: Nov 23, 2000
Posts: 9
Just like pointers are there in C, is there any substitute for them in Java?
Udayan Naik
Ranch Hand

Joined: Oct 18, 2000
Posts: 135
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
asim wagan
Ranch Hand

Joined: Nov 14, 2000
Posts: 62
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."
I agree. Here's the link: http://aspose.com/file-tools
subject: Are there pointers in Java?
Similar Threads
No function pointers unless wrapped in object?
Why Pointers Are Not Required In Java?
pointers in java
Does Java Support pointers? If not why?