Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
try, catch and finally block?
#1
Dear Sir,

In this regard, I have question that when we pass an argument in catch block, we specify argument type, which I think is defined keyword of Java? My actual question, is that is predefined keyword? If no, can we change that word according to our own convenience? Following is the syntax of that code.

catch (FileNotFoundException fnfEx){

...... }

In this code, what is "FileNotFoundException" and what is "fnfEx"? Please clear these concepts....

Regards,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why we are passing IndexOutOfBoundsException ex in catch?we have not ex.any Method or saneha 1 3,418 04-24-2011, 09:33 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)