throws IOException Did U Use In Second Method What U R Doing There I Didnt get You But If U R Throwing A Exception ,Exception Will Never Create Here N U R Throwing The IoException Just Try With Out...