Redirecting you to https://docs.oracle.com/javase/specs/jls/se9/html/jls-15.html#jls-ConstantExpression