Showing posts with label finally. Show all posts
Showing posts with label finally. Show all posts

11 April 2011

how to solve problem "finally block doesn't complete normally" in java

Solution for java 5,java 6, java 7
if you see warning in IDE like "finally block doesn't complete normally" it means your finally block has
break,
continue,
return,
throw
which  interrupt completions of statement .
To solve this problem simply put break,continue,return,throw outside of finally block.