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
You might also like to view...
What is the main difference between site-level and page-level navigation?
What will be an ideal response?
The item added to the stack last will be the item removed last.
Answer the following statement true (T) or false (F)
Describe Android's Safe Mode.
What will be an ideal response?
Once created, a PivotTable cannot be edited
Indicate whether the statement is true or false