本文介绍了关于指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

java中有指针概念吗?如果是这样怎么用?如果不是为什么?

Hello friends,
Is pointer concept is there in java? If so how to use? if not why?

推荐答案



指针不在java上。


语言设计者决定将内存管理抽象到Java的更高级别而不是C.这样做的原因是使用指针和其他低级内存管理技术很容易出错。这些错误可能导致错误。难以阅读的代码,浪费系统资源的内存泄漏以及安全问题。

Pointer is not on java.

The language designers decided to abstract memory management to a higher level in Java than in C. The reason for this is that it is easy to make mistakes using pointers and other lower level memory management techniques. These mistakes can lead to bugs. hard to read code, memory leaks that waste system resources, and security issues.





Java充满了指针(每个对象实际上都是一个指向对象状态(值)的指针)。

Java只是没有''有指针算术但指针遍布整个地方。


亲切的问候,


Jos

Java is full of pointers (every object is actually a pointer to an object state (value)).
Java just doesn''t have pointer arithmetic but pointers are all over the place.

kind regards,

Jos


这篇关于关于指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 16:50