Computer Science, asked by khiladi295, 11 months ago

answer this and get marked as brainlist ..
try to give answer in hindi so that I can understand better

Attachments:

Answers

Answered by jainaditya0411
0

mark me brainliest in the other question i answered first then I will answer this

Answered by Anonymous
0

CODE :


char c = 'a' ;

switch(c)

{

case 'a':

System.out.print("1");

case 'b':

System.out.print("2");

case 'c':

System.out.print("3");

}

System.out.println("Done");


OUTPUT :

123

Done


EXPLANATION :


➡ No break statement is there.

➡ Hence there will be execution of all cases .

➡ Starting from 'a' all cases will be executed .

➡ Hence the output will be 123 .

➡ After the switch case , Done will be printed .


Hope it helps !

_______________________________________________________

Similar questions