+ 18

Qus:- Why pointers are not used in Java?

#basicjavaquestion

14th May 2019, 2:08 PM
Deepika Mourya
Deepika Mourya - avatar
5 Respuestas
+ 14
Java cannot allow pointers, because doing so would allow Java programs to breach the firewall between the Java execution environment and the host computer. (Remember, a pointer can be given any address in memory—even addresses that might be outside the Java run-time system.) Java is designed in such a way that as long as you stay within the confines of the execution environment, you will never need to use a pointer, nor would there be any benefit in using one.
14th May 2019, 9:11 PM
MeanMachine
MeanMachine - avatar
14th May 2019, 2:37 PM
Denise Roßberg
Denise Roßberg - avatar
+ 4
Because java is static language, so we cannot use pointers.
18th May 2019, 11:23 AM
Muhammad Rashid
Muhammad Rashid - avatar
+ 1
we will n ever use a POINTER BCOZ, there is no benefit in using it
16th May 2019, 5:31 AM
Ayshwaryaa
Ayshwaryaa - avatar