Is the following statement legal Is the following try catch
Is the following statement legal? Is the following try catch pair statements legal? Could you write our own catch method pair with a try block?
Solution
46.No, It is a illegal statement, since we have to \'throw\' a exception and we cant directly declare the syntax like that given statement.
47, The given try cath pair is legal, but we need to declare the variable \' time\' in the program for the execution
48.Yes ,we can write our own catch method
