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...
________ is the World Wide Web Consortium’s (W3C) initiative to provide a common markup language for wireless devices and other small devices with limited memory.
a) XHTML. b) XHTML Basic. c) WML. d) None of the above.
Answer the following statements true (T) or false (F)
1. A Label is a component that allows the user to input text from the keyboard. 2. If an event occurs and there is no event handler to respond to that event, the event is ignored. 3. Some of the common GUI components are classes, objects, methods, and fields. 4. When working with a command line interface, if the command is not entered exactly right, it will not work.