Hi, Try to understand the meaning of "try" block. It is the block where exception may occure, if you don't provide any code to handle it, your program will stop. So you need to give the code to handle the exception, and which is given in "catch" block. So there should be "try" with either "catch" or "finally" or both.
subject: Is it possible to have try with out catch or finally