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
1
Hii dear here is your answer
option d. is the correct answer
Hope it's help u
option d. is the correct answer
Hope it's help u
Similar questions
Biology,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
History,
1 year ago
India Languages,
1 year ago