---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 26 Edition"
java_version: 26
chapter: "Chapter 4. The class File Format"
section: "4.10.1.9.lconst_l"
heading: "lconst_<l>"
parent: "4.10.1.9. Type Checking Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se26/html/jvms-4.html#jvms-4.10.1.9.lconst_l
id: "4.10.1.9.lconst_l"
url: https://jvm.obfuscated.software/jvms/se26/4.10.1.9.lconst_l.html
raw: https://jvm.obfuscated.software/jvms/se26/4.10.1.9.lconst_l.md
---

# lconst\_\<l>

An *lconst_0* instruction is type safe if one can validly push the type `long` onto the incoming operand stack yielding the outgoing type state.

```
instructionIsTypeSafe(lconst_0, Environment, _Offset, StackFrame,
                      NextStackFrame, ExceptionStackFrame) :-
    validTypeTransition(Environment, [], long, StackFrame, NextStackFrame),
    exceptionStackFrame(StackFrame, ExceptionStackFrame).
```

An *lconst_1* instruction is type safe iff the equivalent *lconst_0* instruction is type safe.

```
instructionHasEquivalentTypeRule(lconst_1, lconst_0).
```
