> kk thanx i went thru that..wat i understood is.. if i
> give this Exception in the catch block then i can
> catch only those exceptions not the errors..so if i
> need to catch this error then i have to put Throwable
> in the catch block even its bad practise..
I have only caught Throwables 4-5 times in 10 years so it's not something which you do often.
Kaj
first u need to understand the difference between exception and error as i think u are confused with them make it clear
Exceptions are caused by programs thus writing efficient program a program can control them
Error : they are not in the hand of programmers
like system failure, jvm terminates etc
please go through the document again...
bye