---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 11 Edition"
java_version: 11
chapter: "Chapter 16. Definite Assignment"
section: "16.6"
heading: "16.6. Definite Assignment and Anonymous Classes"
parent: "Chapter 16. Definite Assignment"
source: https://docs.oracle.com/javase/specs/jls/se11/html/jls-16.html#jls-16.6
id: "16.6"
url: https://jvm.obfuscated.software/jls/se11/16.6.html
raw: https://jvm.obfuscated.software/jls/se11/16.6.md
---

# 16.6. Definite Assignment and Anonymous Classes

- V is definitely assigned before an anonymous class declaration ([§15.9.5](15.9.5.md)) that is declared within the scope of V iff V is definitely assigned after the class instance creation expression that declares the anonymous class.

It should be clear that if an anonymous class is implicitly defined by an enum constant, the rules of [§16.5](16.5.md) apply.
