What will be output after the following Java statements have been executed (assume all variables are of type int)? a = 4; b = 12; c = 37; d = 51;

```
if (a < b) {
System.out.println("a < b");
}

if (a > b) {
System.out.println("a > b");
}

if (d <= c) {
System.out.println("d <= c");
}

if (c != d) {
System.out.println("c != d");
}
```

a. a < b
c != d
b. a < b
d <= c
c != d
c. a > b
c != d
d. a < b
c < d
a != b

a. a < b
c != d

Computer Science & Information Technology

You might also like to view...

The group of properties associated with a file or folder is referred to as ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Modify the program of Figs. 20.20–20.22 to allow the binary tree object to contain dupli- cates.

What will be an ideal response?

Computer Science & Information Technology