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...
Someone using Microsoft Office 2003 will not be able to open a document saved in the 2007 format
Indicate whether the statement is true or false
A technician is selecting a UPS to use with a blade enclosure containing five blades with room for an additional seven blades. The blade enclosure is currently consuming 2500W of power, and each additional blade will need 200W of power. Assuming runtime to be less than a minute, which of the following is the MINIMUM amount of UPS wattage needed for the blade enclosure with all blades installed?
A. 3500W B. 4000W C. 4500W D. 5000W