Untitled
unknown
plain_text
a year ago
361 B
14
Indexable
// what will be the value of x & y in the following program. (Ternary Operator)
public class Question_4 {
public static void main(String[] args) {
int a = 63, b= 36;
boolean x = (a < b) ? true : false;
int y = (a> b) ? a : b;
System.out.println(x);
System.out.println(y);
}
}
Editor is loading...
Leave a Comment