---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 13 Edition"
java_version: 13
chapter: "Chapter 5. Conversions and Contexts"
section: "5.1.5"
heading: "5.1.5. Widening Reference Conversion"
parent: "5.1. Kinds of Conversion"
source: https://docs.oracle.com/javase/specs/jls/se13/html/jls-5.html#jls-5.1.5
id: "5.1.5"
url: https://jvm.obfuscated.software/jls/se13/5.1.5.html
raw: https://jvm.obfuscated.software/jls/se13/5.1.5.md
---

# 5.1.5. Widening Reference Conversion

A *widening reference conversion* exists from any reference type S to any reference type T, provided S is a subtype of T ([§4.10](4.10.md)).

Widening reference conversions never require a special action at run time and therefore never throw an exception at run time. They consist simply in regarding a reference as having some other type in a manner that can be proved correct at compile time.

The null type is not a reference type ([§4.1](4.1.md)), and so a widening reference conversion does not exist from the null type to a reference type. However, many conversion contexts explicitly allow the null type to be converted to a reference type.
