Java method contains another method throws exception
<p>Inside Method A, there is method B. Method B throws exception, but method A compiled even it does not catch exception or throws exception, could it be possible?</p>

<p>Method B is something like as below:</p>

<pre><code>MethodB() throws SomeException{
   if(Some)
        doneSomething
        return
   else if(some)
        donesomethingElse
        return 
   throw SomeException  
}
</code></pre>
