vineet walia wrote:it is not width try change argumnet 7 and then 7267 ?
It is same for java 5.Harry Henriques wrote:I just wanted to make sure that this isn't a Java 6 feature ONLY.
Harry Henriques wrote:Thanks for your reply, Sebastian. But the code below compiles and runs just fine. I instantiate an implementation of interface Range and an implementation of interface Grassland. The output is below in red.
krishna Mohan Athota wrote:
An abstract "Inner Class" is also an abstarct element. So i beleive we should modify the class outer also with abstract modifier. why we are not geeting the compilation ERROR?
Nitish Bangera wrote:labelled break can be used for any code block but the necessary requirement is it should break the codeblock with that label. labelled continue can only be used for loops with the same label.
Sebastian Janisch wrote:The break statement has no effect.
Note that you are labeling an if statement not a loop (also why continue won't compile).
As your code stands it does thw following.
Your code breaks out of an if statement that would have ended anyway.