What is the output for the third statement in the main method?

```
public class Foo {
static int i = 0;
static int j = 0;

public static void main(String[] args) {
int i = 2;
int k = 3;
{
int j = 3;
System.out.println("i + j is " + i + j);
}

k = i + j;
System.out.println("k is " + k);
System.out.println("j is " + j);
}
}```
a. j is 0
b. j is 1
c. j is 2
d. j is 3


a

Computer Science & Information Technology

You might also like to view...

What is the main difference between site-level and page-level navigation?

What will be an ideal response?

Computer Science & Information Technology

The item added to the stack last will be the item removed last.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Describe Android's Safe Mode.

What will be an ideal response?

Computer Science & Information Technology

Once created, a PivotTable cannot be edited

Indicate whether the statement is true or false

Computer Science & Information Technology