char c='a'
char x=c=='A'?'x':'y';
System.out.println(x);
Answers
Answered by
0
Answer:
y
Explanation:
because condition is false
Answered by
0
Answer:
Output will be y.
Explanation:
because in char c small 'a' has been stored but in the conditional statement it is comapred with capital 'A' so it will execute the else part that is 'y'.
HOPE THIS WILL HELP YOU:)
Similar questions