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. The program has a syntax error, because 09 is an incorrect literal value.
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.

Computer Science & Information Technology

You might also like to view...

Write a recursive method that will remove all the vowels from a given string and return what is left as a new string. Hint: Use the + operator to perform string concatenation to construct the string that is returned.

What will be an ideal response?

Computer Science & Information Technology

If you have a summer cabin in the mountains, which broadband service are you likely to use?

A) Cable B) Satellite C) DSL D) Fiber

Computer Science & Information Technology

List three reasons for producing process specifications.

What will be an ideal response?

Computer Science & Information Technology

Define the following terms:

a) Action element. b) Gunning Fog Index. c) Screen reader. d) Session. e) Web Accessibility Initiative (WAI).

Computer Science & Information Technology