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. j is 0
You might also like to view...
How does a surge protector protect against low-level surges?
A) It passes excess current through to the ground wire. B) It uses excess current to burn out a fuse. C) It passes excess current through a diffuser. D) It uses your home's circuit breaker panel.
A(n) ________ query automatically removes records based on certain criteria
Fill in the blank(s) with correct word
____________________ is a term used to describe a container section.
Fill in the blank(s) with the appropriate word(s).
Why is it important to include documentation comments?
a. none of the answers b. instance variables c. local variable d. unit testing e. javadoc can automatically create HTML pages that describe your classes f. javadoc can automatically create Word documents that describe your classes