|国家预印本平台
首页|基于JVM内存模型的String分析

基于JVM内存模型的String分析

nalysis String Based on JVM Memory Model

中文摘要英文摘要

本文首先介绍了运行时的Java程序的内存管理模型中的方法区、堆和Java栈等几块内存区域,又介绍了存于堆中的常量池这块比较特殊的内存,然后在建立了上述几块内存区域的知识体系的基础上,又详细分析了Java中的String类型的特殊的创建方式、不可变性、内置机制以及String的连接操作等特性。

Firstly, this article introduces several memory area for example method area, heap, Java stack in runtime Java program, then shows the special memory Constant Pool. Based on the knowledge of mentioned memory areas, the article analyzes String of Java and its properties including String's two special creation manners, immutability, intern mechanism and String concatenation.

王培、程明

计算技术、计算机技术

Java方法区String不可变性内置机制字符串连接

JavaMethod AreaHeapStackStringImmutabilityInternString Concatenation

王培,程明.基于JVM内存模型的String分析[EB/OL].(2010-11-03)[2025-08-19].http://www.paper.edu.cn/releasepaper/content/201011-68.点此复制

评论