Java Tutorials- Java Operators (Conditional Operator)

Published: 22 September 2014
on channel: Java Dukes
432
2

Java Dukes--
   / javadukes  

In this video you will learn about the conditional operator that is used in Java.In java there is only a single conditional operator i.e. ternary operator (?:) used.This operator is known as ternary operator because it takes three arguments. the general syntax of ternary operator is

exp1?exp2:exp3

Here exp1 is a Boolean expression which will return either a true value or a false value as result.If on evaluation of exp1 the result is true then exp2 is returned as output and if on evaluating exp1 the result comes false then exp2 is returned as output.

Java Dukes--
   / javadukes  


On this page of the site you can watch the video online Java Tutorials- Java Operators (Conditional Operator) with a duration of hours minute second in good quality, which was uploaded by the user Java Dukes 22 September 2014, share the link with friends and acquaintances, this video has already been watched 432 times on youtube and it was liked by 2 viewers. Enjoy your viewing!