Loading...
Consider the following program segment and select the output of the same when n = 10 : switch(n) {case 10 : System.out.println(n*2); case 4 : System.out.println(n*4); break; default : System.out.println(n); }
Assertion (A): In switch case break statement avoids fall through. Reason (R): break statement helps to execute only one case at a time.
© 2026 PadhAiPro. This question is provided for educational purposes.