Problems related to memory allocation based on Java array
•
Java
Maybe everyone is familiar with Java arrays. Recently, I encountered a problem about memory allocation of Java arrays. ha-ha. Suddenly, I found that the sentence "basic data types are stored in stack memory and objects are stored in heap memory" in many books is completely wrong. Here is a simple example code:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码