+ 1

How does the break keyword work ?

some explain to me how the break keyword works and whats its purpose , when and where i should use it.!

22nd Dec 2016, 8:43 AM
Hayes njogu
Hayes njogu - avatar
1 Answer
+ 2
break is usually used in switch cases to control the follow of execution ,if we use break in some case say case 1 then if tht case gets executed then control comes out of switch else after Executing case 1 successive cases also gets executed
22nd Dec 2016, 9:07 AM
shilpa
shilpa - avatar