What is the output for the first 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. i + j is 5
b. i + j is 6
c. i + j is 22
d. i + j is 23
d. i + j is 23
The first + operator in the expression "i + j is " + i + j is evaluated.
You might also like to view...
Which of the following C++ operators performs logical not equal:
A. <> B. ~= C. != D. None of these are logical not equal in C++.
A __________ organization is one that has the ability to quickly adapt and recover from known or unknown changes to the environment.
A) dependent B) resistant C) tolerable D) resilient
A poster frame is created from the first frame of a video
Indicate whether the statement is true or false
In Project 2013, ________ a task moves a task to the right in the Entry table and makes it a lower level task in a WBS
Fill in the blank(s) with correct word