---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 22 Edition"
java_version: 22
chapter: "Chapter 4. The class File Format"
section: "4.4.3"
heading: "4.4.3. The CONSTANT_String_info Structure"
parent: "4.4. The Constant Pool"
source: https://docs.oracle.com/javase/specs/jvms/se22/html/jvms-4.html#jvms-4.4.3
id: "4.4.3"
url: https://jvm.obfuscated.software/jvms/se22/4.4.3.html
raw: https://jvm.obfuscated.software/jvms/se22/4.4.3.md
---

# 4.4.3. The `CONSTANT_String_info` Structure

The `CONSTANT_String_info` structure is used to represent constant objects of the type `String`:

```
CONSTANT_String_info {
    u1 tag;
    u2 string_index;
}
```

The items of the `CONSTANT_String_info` structure are as follows:

- **tag**

  The `tag` item has the value `CONSTANT_String` (8).

- **string_index**

  The value of the `string_index` item must be a valid index into the `constant_pool` table. The `constant_pool` entry at that index must be a `CONSTANT_Utf8_info` structure ([§4.4.7](4.4.7.md)) representing the sequence of Unicode code points to which the `String` object is to be initialized.
