Java Language Specification, Version Java SE 21 Edition
15.29. Constant Expressions

Read this Section of the Authoritative Specification

https://docs.oracle.com/javase/specs/jls/se21/html/jls-15.html#jls-15.29

0 Documented Misconceptions

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.