Top Posters
Since Sunday
1
1
New Topic  
anhsu anhsu
wrote...
Posts: 498
4 years ago
Analyze the following code.

public class Test {
public static void main(String[] args) {
int month = 09;
System.out.println("month is " + month);
}
}


▸ The program displays month is 9.

▸ The program displays month is 9.0.

▸ The program displays month is 09.

▸ The program has a syntax error, because 09 is an incorrect literal value.
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 63 times
1 Reply
Replies
Answer verified by a subject expert
lindslinds
wrote...
Posts: 386
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

anhsu Author
wrote...

4 years ago
Just got PERFECT on my quiz
wrote...

Yesterday
This site is awesome
wrote...

2 hours ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  865 People Browsing
Related Images
  
 291
  
 271
  
 41
Your Opinion
Which 'study break' activity do you find most distracting?
Votes: 820