why java does not support or allow pointers - from the complete reference java

来源:互联网 发布:苹果加密软件 编辑:程序博客网 时间:2024/05/16 00:35

    Java cannot allow pointers, because doing so would allow Java applets to breach the firewall between the java execution environment and the host computer.

    A pointer can be given any addres in memory, even addresses that might be outside the Java run-time system.

    Java designed in such a way that as long as you stay within the confines of the execution enviroment , you will never need to use a pointer, nor would there be any benefit in using one.