Is the character pair ?: called the relational operator? - ProProfs Discuss
Advertisement

Is the character pair ?: called the relational operator?



Asked by , Last updated: Mar 26, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

Chris Evins

Chris Evins

Want to explore the world.

Chris Evins
Chris Evins, College Student, Schooling, Wolverhampton

Answered Dec 02, 2019

The correct answer to this question is False. ?: is not a relational operator, it is a conditional operator. Conditional operators are used in Java programming languages. Its purpose is to select one out of two given expressions for evaluation.

The expressions are based on the sum of the first operands. Conditional operators are also known as ternary operators because they require three arguments. Situations in a line use conditional operators as a way to handle them.

Is an example expression1? expression2:expression3; In laments terms, this example means that expression 1 is true. Then, expression 2 is the expression evaluated. If not, then expression 3 must be evaluated.

upvote downvote
Reply 

John Adney

John Adney

John Adney
John Adney

Answered Jul 18, 2017

?: is not a relational operator, it is a conditional operator

upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Jul 18, 2017

False

?: is not a relational operator, it is a logical operator
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.