---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 8 Edition"
java_version: 8
chapter: "Chapter 4. The class File Format"
section: "4.2"
heading: "4.2. The Internal Form of Names"
parent: "Chapter 4. The class File Format"
source: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2
id: "4.2"
url: https://jvm.obfuscated.software/jvms/se8/4.2.html
raw: https://jvm.obfuscated.software/jvms/se8/4.2.md
---

# 4.2. The Internal Form of Names

## 4.2.1. Binary Class and Interface Names

Class and interface names that appear in `class` file structures are always represented in a fully qualified form known as *binary names* (JLS §13.1). Such names are always represented as `CONSTANT_Utf8_info` structures ([§4.4.7](4.4.7.md)) and thus may be drawn, where not further constrained, from the entire Unicode codespace. Class and interface names are referenced from those `CONSTANT_NameAndType_info` structures ([§4.4.6](4.4.6.md)) which have such names as part of their descriptor ([§4.3](4.3.md)), and from all `CONSTANT_Class_info` structures ([§4.4.1](4.4.1.md)).

For historical reasons, the syntax of binary names that appear in `class` file structures differs from the syntax of binary names documented in JLS §13.1. In this internal form, the ASCII periods (`.`) that normally separate the identifiers which make up the binary name are replaced by ASCII forward slashes (`/`). The identifiers themselves must be unqualified names ([§4.2.2](4.2.2.md)).

For example, the normal binary name of class `Thread` is `java.lang.Thread`. In the internal form used in descriptors in the `class` file format, a reference to the name of class `Thread` is implemented using a `CONSTANT_Utf8_info` structure representing the string `java/lang/Thread`.

## 4.2.2. Unqualified Names

Names of methods, fields, local variables, and formal parameters are stored as *unqualified names*. An unqualified name must contain at least one Unicode code point and must not contain any of the ASCII characters `.` `;` `[` `/` (that is, period or semicolon or left square bracket or forward slash).

Method names are further constrained so that, with the exception of the special method names `<init>` and `<clinit>` ([§2.9](2.9.md)), they must not contain the ASCII characters `<` or `>` (that is, left angle bracket or right angle bracket).

Note that a field name or interface method name may be `<init>` or `<clinit>`, but no method invocation instruction may reference `<clinit>` and only the *invokespecial* instruction ([§*invokespecial*](6.5.invokespecial.md)) may reference `<init>`.
