Since you wanted the spec, here it is (from §15.25 Conditional Operator ? :, the last sentence of the section):
The operand expression not chosen is not evaluated for that particular evaluation of the conditional expression.
More Related Contents:
- Why doesn’t Java have compound assignment versions of the conditional-and and conditional-or operators? (&&=, ||=)
- What is the Java ?: operator called and what does it do?
- Returning null as an int permitted with ternary operator but not if statement
- What is short circuiting and how is it used when programming in Java? [duplicate]
- What is a Question Mark “?” and Colon “:” Operator Used for? [duplicate]
- Booleans, conditional operators and autoboxing
- Why does the ternary operator unexpectedly cast integers?
- How to check if my string is equal to null?
- Java conditional operator ?: result type
- Can Java’s ternary/conditional operator (?:) be used to call methods instead of assigning values?
- Ternary Operator
- Check if int is between two numbers
- Null Pointer Exception in Android , what does it say? [duplicate]
- How to parse JSON in Kotlin?
- How can I log SQL statements in Spring Boot?
- What is the list of valid @SuppressWarnings warning names in Java?
- Is String Literal Pool a collection of references to the String Object, Or a collection of Objects
- How to retrieve image from project folder?
- termination of program on main thread exit?
- How to do if-else in Thymeleaf?
- Mock private method using PowerMockito
- How to Implement HTTP byte-range requests in Spring MVC
- How to define a java object name with a variable?
- How to Replace dot (.) in a string in Java
- Spring MVC – Binding a Date Field
- How to include custom panel with NetBeans GUI Builder?
- Java Math.pow(a,b) time complexity
- Java NIO: What does IOException: Broken pipe mean? [duplicate]
- Difference between SparkContext, JavaSparkContext, SQLContext, and SparkSession?
- How to restart thread in java? [duplicate]