Computer Science, asked by saniaseraj2, 1 year ago

what will be the output of the given code?(java)​

Attachments:

Answers

Answered by rabinmukherjee6040
1

The output of the given code will be 97...

Step by step explanation :

Second line is a conditional sentence of ternary loop..it means that if x is equal to a, then m will have the integer value of A and if x is not equal to a, then m will have the integer value of a... the first condition is wrong,  so it jumps to the next condition...m holdo the integer value of a,I. e. 97 ( implicit type casting )

I hope u like my answer...

If yes, then please mark it as brainliest, , I need it...

Similar questions