News
The statement evaluated in the body of the Java ternary operator cannot return void. For example, the following code places a print statement after question mark, and causes a compile error: Type ...
Example of statements in a Java program; download. ... However, this operator cannot be used to execute alternate statements. Instead, it can only return one of two values of the same type.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results