| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#2 (permalink) |
|
Member
Join Date: Jul 2006
Posts: 67
Thanks: 11 Thanked 43 Times in 29 Posts Thanks: 11
Thanked 43 Times in 29 Posts
Rep Power: 8
|
Re: exception once you have caught?
Hi,
If we are not catching the exception then we can't identify the reason of program failure.. If we catch it we ll get the reason of program failure through the catch block try { ..... ..... ..... } catch { e.printStackTrace();//Prints the exceptions } which tells us about the exception and its now easy for us to alter the program so that it works fine Friends correct me if i'm wrong
__________________
Regards Surekha
Last edited by surekhav; 07-02-07 at 03:06 PM. |
|
|
|
|
|
#3 (permalink) |
|
Banned
Join Date: Oct 2006
Location: India
Age: 25
Posts: 33
Thanks: 1 Thanked 4 Times in 4 Posts Thanks: 1
Thanked 4 Times in 4 Posts
Rep Power: 0
|
Re: exception once you have caught?
Once you have got an exception you can display a JOptionPane with a suitable message stating what exception has occured based on your business logic. Its basically useful when handling user defined exceptions. The general exceptions are simply handled.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what are exceptions? | mounika | ORACLE , SQL SERVER , SYBASE & Others | 13 | 01-03-07 04:49 PM |
| What will happen to the Exception object after exception handling | preethisingh | Java Interview / Technical Questions | 0 | 23-01-07 01:25 PM |
| Frds... Be very careful when u get caught with dust | Spoorthi | PICS ZONE | 3 | 28-10-06 09:45 AM |
| java notes | naga | JAVA Technologies | 5 | 22-09-06 10:30 PM |
| Java Contest-30 | keerthi | JAVA Technologies | 3 | 01-06-06 11:31 AM |