DEVFYI - Developer Resource - FYI

Is the ternary operator written x : y ? z or x ? y : z ?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

255. Is the ternary operator written x : y ? z or x ? y : z ?

It is written x ? y : z.

(Continued on next question...)

Other Interview Questions