Question 1
What is i printed in the following code?
public class Test {
public static void main(String[] args) {
| System.out.println("What is i? " + i); |
}
}
◦ 5
◦ 1
◦ 0
◦ 6
Question 2
What is y displayed in the following code?
public class Test {
public static void main(String[] args) {
| System.out.println("y is " + y); |
}
}
◦ y is 1.
◦ y is 2.
◦ y is 3.
◦ y is 4.