Labled break inside java methods
Why java allows to use the labled break inside a method? 
Is there any special purpose or use of this? 
I thought it can be only use within the loops and swtches.

    public void testMeth(int count){
       label:
       break label;
    }

But below gives a compiler error.

	public void testMeth(int count){
		break; // break cannot be used outside of a loop or a switch
	}
Labled break inside java methods
===

Why java allows to use the labled break inside a method? 
Is there any special purpose or use of this? 
I thought it can be only use within the loops and swtches.

    public void testMeth(int count){
       label:
       break label;
    }

But below gives a compiler error.

	public void testMeth(int count){
		break; // break cannot be used outside of a loop or a switch
	}