Computer Science, asked by janvihellokitty6237, 1 year ago

What will be the value of y after execution of switch statement?

public class Test{ public static void main(String[] args){ int x = 3, y = 4; switch(x + 3){ case 6: y = 0; case 7: y = 1; default: y += 1; } } }
A.1
B.2
C.3
D.4

Answers

Answered by Neeraj723
1
Hii dear here is your answer


option d. is the correct answer

Hope it's help u
Similar questions