Re: why java does not support pointers
- From: "Luke Meyers" <n.luke.meyers@xxxxxxxxx>
- Date: 31 Dec 2005 00:26:34 -0800
Well, it's debatable whether Java does or doesn't support pointers.
Some would say that everything (well, every reference type) in Java is
a pointer -- hence, the ever-familiar NullPointerException. But
certainly, these reference types do not give one the sort of direct
interaction with memory that we're familiar with from pointers in,
e.g., C. The decision to have it this way has to do with the design
principles of Java. Security and portability are probably two of the
main ones. In Java, can you access uninitialized or deallocated
memory? Well, that's because of the lack of pointers. Like it or lump
it, that's Java.
Luke
.
- Follow-Ups:
- Re: why java does not support pointers
- From: ricky.clarkson@xxxxxxxxx
- Re: why java does not support pointers
- References:
- why java does not support pointers
- From: chandu
- why java does not support pointers
- Prev by Date: Use of properties class
- Next by Date: Re: Use of properties class
- Previous by thread: why java does not support pointers
- Next by thread: Re: why java does not support pointers
- Index(es):
Relevant Pages
|