[HD Pg 152, Sec. 6.3.0 - the-break-statement]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
enthunoob
Posts: 60
Joined: Thu Apr 15, 2021 12:21 pm
Contact:

[HD Pg 152, Sec. 6.3.0 - the-break-statement]

Post by enthunoob »

"This is called “fall through” behavior of a switch statement.
In absence of a break statement, the control falls through to the next case block and the next case block, and so on until it reaches the end of the switch statement. This feature is used when... "

Are you sure it's not just a bug? :lol:

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 152, Sec. 6.3.0 - the-break-statement]

Post by admin »

It is not unintentional behavior. That is how it is designed to work. Perks of being the language designer!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 39 guests