What is i printed in the following code?

```
public class Test {
public static void main(String[] args) {
int j = 0;
int i = j++ + j * 5;

System.out.println("What is i? " + i);
}
}
```

a. 0
b. 1
c. 5
d. 6

d. 6

Computer Science & Information Technology

You might also like to view...

The Format command prepares a disk to store data

Indicate whether the statement is true or false

Computer Science & Information Technology

The default Equals implementation determines:

a) whether two references refer to the same object in memory. b) whether two references have the same type. c) whether two objects have the same instance variables. d) whether two objects have the same instance variable values.

Computer Science & Information Technology