kiran nyala wrote:IS IT RETURNS -1 to main method??
The best way to learn is to try things by yourself ,
for me it will not return -1 , and will give you this exception
because there is no return type for the method "readFile()" it suppose to return int , to solve this , move the return statement after the finally clause ..