Analyze the following code.
public class Test {
public static void main(String[] args) {
int month = 09;
System.out.println("month is " + month);
}
}
a. The program displays month is 09.
b. The program displays month is 9.
c. The program displays month is 9.0.
d. The program has a syntax error, because 09 is an incorrect literal value.
d Any numeric literal with the prefix 0 is an octal value. But 9 is not an octal digit. An octal digit is 0, 1, 2, 3, 4, 5, 6, or 7.
You might also like to view...
Which of the following statements is false?
a. When the app first executes, onCreate is called after onStart. b. When the app is running in portrait orientation and the user opens the Set-tings-Activity, the MainActivity is stopped while the SettingsActivity is displayed. When the user returns to the MainActivity, onStart is called again. c. To get a reference to the MainActivityFragment so we can call its methods, use inherited AppCompatActivity method getSupportFragmentManager to get the FragmentManager, then call its findFragmentById method. d. Each of the above statements is true.
If an ISP assigned you a /28 IPv4 address block, how many computers could you assign an address?
What will be an ideal response?