English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-03-04 16:02:23 · 2 answers · asked by Ranadeep M 1 in Computers & Internet Software

2 answers

One of the reasons java doesn't have pointer is that, pointers are a way to hack(or attack) a system i.e they provide access to system resources. So removing pointers removes vulnerability to attack.

But implicitly there are pointers in Java. All objects are pointers. Because every object points to a location making it a pointer. But they can't be manipulated as in C.

2007-03-04 16:17:23 · answer #1 · answered by JOE 1 · 0 0

Pointers don't exist in Java because that's one area of C Java tried to fix. Instead, Java crippled the programmer by taking pointers away.

2007-03-04 16:07:16 · answer #2 · answered by BigRez 6 · 0 0

fedest.com, questions and answers