Top Posters
Since Sunday
n
3
j
3
x
2
c
2
2
p
2
n
2
3
2
C
2
z
2
k
2
d
2
New Topic  
seeb1999 seeb1999
wrote...
Posts: 480
Rep: 2 0
3 years ago
What is y after the following switch statement?

int x = 0;
int y = 0;
switch (x + 1) {
case 0: y = 0;
case 1: y = 1;
default: y = -1
}


▸ 0

▸ 1

▸ 2

▸ -1
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


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

Related Topics

seeb1999 Author
wrote...

3 years ago
Correct Slight Smile TY
wrote...

Yesterday
Smart ... Thanks!
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
  947 People Browsing
Related Images
  
 165
  
 411
  
 241
Your Opinion
What's your favorite funny biology word?
Votes: 329