Java Glossary : pointer

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : P words : pointer.

pointer
Strictly speaking, in Java, a pointer is a reference that is guaranteed not to be null. However, when people use the term pointer, they usually mean C++ style direct hardware address pointers.

You may have heard some FUDster claiming that Java sucks roadkill because it has no pointers. How can you write serious code without pointers? In Java are you actually limited to FØRTRAN style problems: no linked lists, no queues etc? Java does not have raw pointers like C or C++. It has something almost as powerful, but many times safer called references (Java refers to them as pointers in one place, the NullPointerException). They are like pointers, except that the dangerous features are removed, namely:

The safety comes with a cost.


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1656.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/pointer.html J:\mindprod\jgloss\pointer.html