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.
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?
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
List three reasons for producing process specifications.
What will be an ideal response?
Define the following terms:
a) Action element. b) Gunning Fog Index. c) Screen reader. d) Session. e) Web Accessibility Initiative (WAI).