There is a typo! The right answer is E! Because: break without a label, can occur only in a switch, while, do, or for statement.
What about for each/enhanced for loop ? Enhanced for loop doesn't equal to for loop ! The difinition of enhanced loop has been introduced since java 5 only.
About Question enthuware.ocajp.i.v7.2 . 1281 :
Moderator: admin
-
- Posts: 4
- Joined: Sat Mar 14, 2015 5:19 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1281 :
Yes, when you say a for statement, it includes regular for and enhance for. When you say "regular for", it means only the regular for and not enhanced for. When you say, "enhanced for", it means only the enhanced for.
It has now been made clear in the option.
HTH,
Paul.
It has now been made clear in the option.
HTH,
Paul.
Who is online
Users browsing this forum: No registered users and 2 guests