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

# 16.4. Definite Assignment and Array Initializers

- V is [un]assigned after an empty array initializer ([§10.6](10.6.md)) iff V is [un]assigned before the empty array initializer.
- V is [un]assigned after a non-empty array initializer iff V is [un]assigned after the last variable initializer in the array initializer.
- V is [un]assigned before the first variable initializer of the array initializer iff V is [un]assigned before the array initializer.
- V is [un]assigned before any other variable initializer `e` of the array initializer iff V is [un]assigned after the variable initializer to the left of `e` in the array initializer.
