Theory
JVM Virtual Memory Distribution:The program counter is the pipeline of the JVM execution program and holds some jump instructions.The local method stack is the stack used by the JVM to invoke the operating system method.The virtual
In-depth exploration of Java constant pool and java constant pool
Java constant pools are generally divided into two types: static constant pools and runtime constant pools.
Static constant pool: constant pool in the class file. The constant pool in
Reprinted from http://my.oschina.net/xianggao/blog/84179
Author: Old demon
Java constant pool technology
The constant pool technology in Java is used to create some objects conveniently and quickly. when an object is required, you can obtain one
3.2.2 Constantsand variables can be used in the program to express those that may change the amount of data corresponding to, in C + +, we use constants to express those always remain unchanged data volume. In simple terms, the values, characters,
In C/C ++ learning, some people often cannot understand the concepts of "constant Pointer" and "pointer constant. In fact, the data on the address pointed to by the "constant Pointer" is a constant, while the address pointed to by the "pointer
3.2.2 Constantsand variables can be used in the program to express those that may change the amount of data corresponding to, in C + +, we use constants to express those always remain unchanged data volume. In simple terms, the values, characters,
Java memory allocation:
1. Register: we cannot control it in the program2. STACK: stores basic data and object references, but the object itself is not stored in the stack, but stored in the heap.3. Heap: store data generated with new4. static
Java String and constant pool, JavaString constant pool
String is a string in java. The String class is unchangeable. Any change to the String class will return a new String class object.
1. First, String does not belong to eight basic data types.
This essay is reproduced, the original paste address: Java constant pool understanding and summary.(In fact, Java's Chang is a bit like the constant store of storing string constants in C + +).I. Related Concepts
What is a constantA
I. Related Concepts
What is a constantA constant is represented by a final modified member variable, which cannot be changed once the value is given!There are three final modified variables: Static variables, instance variables, and local
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.