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.

Computer Science & Information Technology

You might also like to view...

As you drag text in Microsoft Word 2016, a(n) _____ follows the pointer, indicating where the selected text will be placed when the mouse button is released.?

A. ?horizontal line B. ?endnote C. ?footnote D. ?vertical line

Computer Science & Information Technology

Case 2-1 Mary has won a newly launched laptop computer in an event conducted by her school. She uses a pressure sensitive device that looks just like a pen to navigate the applications in her laptop. Identify the device Mary is using.

A. ?A tablet B. ?A touch pad C. ?A stylus D. ?A projector

Computer Science & Information Technology

Which of the following PowerPoint window elements shows slide thumbnails that can be repositioned using drag and drop?

A. Outline tab B. Slide pane C. Slides tab D. Notes pane

Computer Science & Information Technology

_________ is used to create the XML document that describes the tasks performed by the various web services.

A. HTML B. SOAP C. UDDI D. WSDL

Computer Science & Information Technology