Top Posters
Since Sunday
j
4
m
4
4
4
n
3
m
3
R
3
V
3
e
3
w
3
j
3
a
3
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 69 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
Good timing, thanks!
wrote...

Yesterday
Thanks for your help!!
wrote...

2 hours ago
this is exactly what I needed
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1069 People Browsing
Related Images
  
 47
  
 2719
  
 407